|
|||||||
|
|
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)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |