BSD 4_2 development
[unix-history] / usr / man / man3 / getpw.3c
CommitLineData
9e55eb41
C
1.TH GETPW 3C "19 January 1983"
2.SH NAME
3getpw \- get name from uid
4.SH SYNOPSIS
5.nf
6.B getpw(uid, buf)
7.B char *buf;
8.fi
9.SH DESCRIPTION
10.ft B
11Getpw is obsoleted by getpwuid(3).
12.ft R
13.PP
14.I Getpw
15searches the password file for
16the (numerical)
17.IR uid ", and fills in " "buf"
18with the corresponding line;
19it returns non-zero if
20.IR uid ""
21could not
22be found.
23The line is null-terminated.
24.SH FILES
25/etc/passwd
26.SH "SEE ALSO"
27getpwent(3),
28passwd(5)
29.SH DIAGNOSTICS
30Non-zero
31return on error.