File:  [Research Unix] / researchv10dc / dist / man / v4 / man3 / getpw.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.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).

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.