putpwent(3)putpwent(3)Nameputpwent - write password file entry
Syntax
#include <pwd.h>
int putpwent (p, f)
struct passwd ∗p;
FILE ∗f;
Description
The subroutine is the inverse of Given a pointer to a passwd structure
created by (or or writes a line on the stream f which matches the for‐
mat of
Diagnostics
The subroutine returns non-zero if an error was detected during its
operation, otherwise zero. The routine uses <stdio.h>, which causes it
to increase the size of programs, not otherwise using standard I/O,
more than might be expected.
putpwent(3)