4.3BSD-Reno/src/lib/libcompat/4.1/getpw.3

Compare this file to the similar file:
Show the results in this format:

.\"	@(#)getpw.3	6.3 (Berkeley) 5/17/89
.\"
.TH GETPW 3  "May 17, 1989"
.AT 3
.SH NAME
getpw \- get name from uid
.SH SYNOPSIS
.nf
.B getpw(uid, buf)
.B char *buf;
.fi
.SH DESCRIPTION
.ft B
Getpw is made obsolete by getpwuid(3).
.br
It is available from the compatibility library, libcompat.
.ft R
.PP
.I Getpw
searches the password file for
the (numerical)
.IR uid ", and fills in " "buf"
with the corresponding line;
it returns non-zero if
.IR uid ""
could not
be found.
The line is null-terminated.
.SH FILES
/etc/passwd
.SH "SEE ALSO"
getpwent(3),
passwd(5)
.SH DIAGNOSTICS
Non-zero
return on error.