PUTPWENT(3C) — HP-UX
NAME
putpwent − write password file entry
SYNOPSIS
#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 as created by getpwent (or getpwuid or getpwnam), putpwent writes a line on the stream f, which matches the format of /etc/passwd.
DIAGNOSTICS
Putpwent returns non-zero if an error was detected during its operation, otherwise zero.
SEE ALSO
Hewlett-Packard Company — Version B.1, May 11, 2021