Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3)

passwd(5yp)

getpw(3)

Name

getpw − get name from uid

Syntax

getpw(uid, buf)
char *buf;

Description

The getpw routine has been superseded by getpwuid, see getpwent(.).

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

Diagnostics

Nonzero return on error. 

Files

/etc/passwd

See Also

getpwent(3), passwd(5yp)

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