Copyright (C) 2000-2012 |
Manpages FGETPWENTSection: Linux Programmer's Manual (3 )Updated: 1996-05-17 Index Return to Main Contents NAMEfgetpwent - get password file entrySYNOPSIS#include <pwd.h> #include <stdio.h> #include <sys/types.h> struct passwd *fgetpwent(FILE *stream); DESCRIPTIONThe fgetpwent() function returns a pointer to a structure containing the broken out fields of a line in the file stream. The first time it is called it returns the first entry; thereafter, it returns successive entries. The file stream must have the same format as /etc/passwd.The passwd structure is defined in <pwd.h> as follows:
RETURN VALUEThe fgetpwent() function returns the passwd structure, or NULL if there are no more entries or an error occurs.ERRORS
FILES
CONFORMING TOSVID 3SEE ALSOgetpwnam(3), getpwuid(3), getpwent(3), setpwent(3), endpwent(3), getpw(3), putpwent(3), passwd(5)
IndexThis document was created by man2html, using the manual pages. Time: 19:51:19 GMT, April 25, 2024 |