PUTPWENT(3C) DOMAIN/IX Reference Manual (SYS5) PUTPWENT(3C)
NAME
putpwent - write password file entry
USAGE]
#include <pwd.h>
int putpwent (p, f)
struct passwd *p;
FILE *f;
DESCRIPTION
Putpwent is the inverse of getpwent(3C). Given a pointer to
a passwd structure created by getpwent (or getpwuid or
getpwnam), putpwent writes a line whose format matches that
of /etc/passwd on the stream f.
NOTES
These routines use <stdio.h>, which increases the size of
programs that do not otherwise use standard I/O, more than
you might expect.
DIAGNOSTICS
Putpwent returns non-zero if an error was detected during
its operation. Otherwise, it returns zero.
RELATED INFORMATION
getpwent(3C)
Printed 5/10/85 PUTPWENT-1