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