putpwent(3) CLIX putpwent(3)
NAME
putpwent - Writes a password file entry
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <pwd.h>
int putpwent(
struct passwd *p ,
FILE *f );
PARAMETERS
p A pointer to a password structure
f A pointer to a stream
DESCRIPTION
The putpwent() function is the inverse of getpwent(). 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.
FILES
/etc/passwd
CAUTIONS
The above function uses <stdio.h> which can cause a program (not using
standard I/O) to increase in size more than expected.
RETURN VALUES
The putpwent() function returns a nonzero if an error is detected when it
operates; otherwise, a 0.
RELATED INFORMATION
Function: getpwent(3)
2/94 - Intergraph Corporation 1