static char PASSWD
[] = "/etc/passwd";
static char EMPTY
[] = "";
static char line
[BUFSIZ
+1];
static struct passwd passwd
;
pwf
= fopen( PASSWD
, "r" );
if( (pwf
= fopen( PASSWD
, "r" )) == NULL
)
p
= fgets(line
, BUFSIZ
, pwf
);
passwd
.pw_comment
= EMPTY
;
while(*p
&& *p
!= '\n') p
++;