Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwent(3) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3)

putpwent(3)

NAME

putpwent − write password file entry

SYNTAX

#include <pwd.h>

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

DESCRIPTION

The putpwent subroutine is the inverse of getpwent(3).  Given a pointer to a passwd structure created by getpwent, getpwuid, or getpwnam, putpwent writes a line on the stream f, which matches the format of /etc/passwd.

DIAGNOSTICS

The putpwent subroutine returns non-zero if an error was detected during its operation, otherwise zero. 

SEE ALSO

getpwent(3)

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