Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3C) — UNIX System III

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

passwd(5)

GETPW(3C)  —  UNIX 3.0

NAME

getpw − get name from UID

SYNOPSIS

getpw (uid, buf)
int uid;
char ∗buf;

DESCRIPTION

Getpw searches the password file for the (numerical) uid, and fills in buf with the corresponding line; it returns non-zero if uid could not be found.  The line is null-terminated. 

This routine is included only for compatibility with prior systems and should not be used; see getpwent(3C) for routines to use instead.

FILES

/etc/passwd

SEE ALSO

getpwent(3C), passwd(5). 

DIAGNOSTICS

Non-zero return on error. 

May 16, 1980

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