Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)



PUTPWENT(3C)             DOMAIN/IX SYS5              PUTPWENT(3C)



NAME
     putpwent - write password file entry

USAGE
     #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 whose format matches that
     of /etc/passwd on the stream f.

NOTES
     These routines use <stdio.h>, which increases the size of
     programs that do not otherwise use standard I/O more than
     you might expect.

     On DOMAIN/IX Systems, /etc/passwd is built from registry
     information by the program crpasswd(1M).

DIAGNOSTICS
     Putpwent returns non-zero if an error was detected during
     its operation.  Otherwise, it returns zero.

RELATED INFORMATION
     getpwent(3C)






















Printed 12/4/86                                        PUTPWENT-1





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026