PUTPWENT(S) XENIX System V PUTPWENT(S)
Name
putpwent - Writes a password file entry.
Syntax
#include <pwd.h>
int putpwent (p, f)
struct passwd *p;
FILE *f;
Description
putpwent is the inverse of getpwent(S). Given a pointer to
a passwd structure created by getpwent (or getpwuid or
getpwnam), putpwent writes a line on the stream f. The line
matches the format of /etc/passwd.
See Also
passwd(M), getpwent(S)
Diagnostics
putpwent returns nonzero if an error was detected during its
operation, otherwise zero.
Page 1 (printed 8/7/87)