putpwent(3C) putpwent(3C)
NAME
putpwent - write password file entry
SYNOPSIS
#include <pwd.h>
int putpwent(const 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 on the stream f, which matches the format of
/etc/passwd.
RESULT
putpwent() returns non-zero if an error was detected during its opera-
tion, otherwise zero.
SEE ALSO
getpwent(3C).
Page 1 Reliant UNIX 5.44 Printed 11/98