summaryrefslogtreecommitdiff
path: root/static/v10/man3/getpw.3
blob: 56189a36445f539bd4a63ea79536d22e288637bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.th GETPW III 4/7/73
.sh NAME
getpw \*- get name from UID
.sh SYNOPSIS
.ft B
getpw(uid, buf)
.br
char *buf;
.ft R
.sh DESCRIPTION
.it Getpw
searches the password file for
the (numerical)
\fIuid\fR, and fills in \fIbuf\fR
with the corresponding line;
it returns non-zero if \fIuid\fR could not
be found.
The line is null-terminated.
.sh FILES
/etc/passwd
.sh "SEE ALSO"
passwd(V)
.sh DIAGNOSTICS
non-zero
return on error.
.sh BUGS
It disturbs
buffered input via \fIgetchar\fR (III).