GETPW(3C) — HP-UX
NAME
getpw − get name from UID
SYNOPSIS
int getpw (uid, buf)
int uid;
char ∗buf;
DESCRIPTION
Getpw searches the password file for a user id number that equals uid, copies the line of the password file in which uid was found into the array pointed to by buf, and returns 0. Getpw returns non-zero if uid cannot 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.
NETWORKING FEATURES
NFS
This routine is implemented using getpwuid(3C) and therefore uses the Yellow Pages network database as described in passwd(4).
DIAGNOSTICS
Getpw returns non-zero on error.
WARNINGS
The above routine uses <stdio.h>, which causes it to increase, more than might be expected, the size of programs not otherwise using standard I/O.
AUTHOR
Getpw was developed by AT&T and HP.
FILES
/etc/passwd
SEE ALSO
Hewlett-Packard Company — May 11, 2021