projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add tzset.3, mktime.3 links to ctime.3
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
getpwnam.c
#ifndef lint
static char
sccsid
[] =
"@(#)getpwnam.c 5.1 (Berkeley) %G%"
;
#endif not lint
#include <pwd.h>
struct
passwd
*
getpwnam
(
name
)
char
*
name
;
{
register
struct
passwd
*
p
;
struct
passwd
*
getpwent
();
setpwent
();
while
( (
p
=
getpwent
()) &&
strcmp
(
name
,
p
->
pw_name
) );
endpwent
();
return
(
p
);
}