putpwent(3C) DG/UX 5.4R3.00 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.
Considerations for Threads Programming
+---------+-----------------------------+
| | async- |
|function | reentrant cancel cancel |
| | point safe |
+---------+-----------------------------+
|putpwent | N - - |
+---------+-----------------------------+
SEE ALSO
reentrant(3), getpwent(3C).
DIAGNOSTICS
putpwent returns non-zero if an error was detected during its
operation, otherwise zero.
WARNING
The above routine uses <stdio.h>, which causes it to increase the
size of programs that otherwise don't use standard I/O. The size
increases more than might be expected.
Licensed material--property of copyright holder(s) 1