Manual pages › C library (3C)
putpwent(3C)
write password file entry
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
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 .
SEE ALSO
getpwent (3C) .
DIAGNOSTICS
putpwent returns non-zero if an error was detected during its operation, otherwise zero.
amigaux.org is an independent, unofficial project. This site and its developers are not affiliated with, endorsed by, or sponsored by Amiga Corporation. Amiga is a registered trademark of Amiga Corporation. The project is likewise not affiliated with, endorsed by, or sponsored by Commodore or any other trademark holder. AmigaOS and Amiga UNIX are trademarks of their respective owners; UNIX is a registered trademark of The Open Group. Amiga UNIX is Commodore's port of AT&T UNIX System V Release 4; portions are copyright AT&T, UNIX System Laboratories and their successors.