Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwent(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(S)

getpwuid(S)

getpwnam(S)


 putpwent(S)                    6 January 1993                    putpwent(S)


 Name

    putpwent - write password file entry

 Syntax


    cc  . . .  -lc


    #include <pwd.h>

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


 Description

    The putpwent routine is the inverse of the getpwent(S) routine.  Given a
    pointer to a passwd structure created by getpwent (or two other routines
    that appear on the same man page - getpwuid(S) or getpwnam(S)), putpwent
    writes a line which matches the format of /etc/passwd onto the stream f.

 Return value

    Upon successful completion, the putpwent routine returns a value of zero.
    If an error was detected during its operation, it will return a non-zero
    value.

 See also

    getpwent(S), getpwuid(S), getpwnam(S)

 Standards conformance

    putpwent conforms with:
    AT&T SVID Issue 2, but has been withdrawn from XPG3.


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