1: static  char *sccsid = "@(#)getpwnam.c 4.1 10/9/80";
   2: 
   3: #include <pwd.h>
   4: 
   5: struct passwd *
   6: getpwnam(name)
   7: char *name;
   8: {
   9:     register struct passwd *p;
  10:     struct passwd *getpwent();
  11: 
  12:     setpwent();
  13:     while( (p = getpwent()) && strcmp(name,p->pw_name) );
  14:     endpwent();
  15:     return(p);
  16: }

Defined functions

getpwnam defined in line 5; used 2 times

Defined variables

sccsid defined in line 1; never used
Last modified: 1980-10-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 672
Valid CSS Valid XHTML 1.0 Strict