PUTPWENT(3C) — Kubota Pacfic Computer Inc. (C Programming Language Utilities)
NAME
putpwent − write password file entry
SYNOPSIS
#include <pwd.h>
int putpwent (p, f)
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
DIAGNOSTICS
putpwent returns non-zero if an error was detected during its operation, otherwise zero.
WARNING
This routine uses <stdio.h>, causing a greater than expected increase in the size of programs not otherwise using standard I/O.
September 02, 1992