PUTPWENT(3,L) AIX Technical Reference PUTPWENT(3,L) ------------------------------------------------------------------------------- putpwent PURPOSE Writes a password file entry. LIBRARY Standard C Library (libc.a) SYNTAX #include <pwd.h> int putpwent (p, f) struct passwd *p; FILE *f; DESCRIPTION The putpwent subroutine writes a line on the stream specified by the f parameter. The stream that is written on matches the format of /etc/passwd. The p parameter is a pointer to a passwd structure created by the getpwent, getpwuid, or getpwnam subroutines. RETURN VALUE Upon successful completion, putpwent returns a value of 0. If putpwent fails, a nonzero value is returned. RELATED INFORMATION In this book: "getpwent, getpwuid, getpwnam, setpwent, endpwent" and "passwd." Processed November 7, 1990 PUTPWENT(3,L) 1