Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwent(S) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     PUTPWENT(S)               UNIX System V               PUTPWENT(S)



     Name
          putpwent - write password file entry

     Syntax
          #include <pwd.h>

          int putpwent (p, f)
          struct passwd *p;
          FILE *f;

     Description
          The putpwent function is the inverse of getpwent(S).  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
          getpwent(S)

     Diagnostics
          The putpwent function 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, not otherwise using standard
          I/O, more than might be expected.

     Standards Conformance
          putpwent is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          and The X/Open Portability Guide II of January 1987.
                                             (printed 6/20/89)



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