.TH getpw() "" "" "General Function (libc)"
.PC "Search password file"
\fBgetpw(\fIuid, line\^\fB)\fR
\fBshort \fIuid\^\fB;\fR
\fBchar *\fIline\^\fB;\fR
.PP
.B getpw()
searches the password file
.B /etc/passwd
for the first entry with numerical user id
.IR uid .
If found,
.I line
receives the corresponding line from the password file.
.SH Files
.B /etc/passwd
.SH "See Also"
.Xr "getpwent()," getpwent
.Xr "getuid()," getuid
.Xr "libc," libc
.Xr "passwd" passwd
.SH Diagnostics
.B getpw()
returns a nonzero value on error.
