projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_1c_2 release
[unix-history]
/
usr
/
src
/
lib
/
libc
/
stdio
/
getgrgid.c
/* @(#)getgrgid.c 4.1 (Berkeley) 12/21/80 */
#include <grp.h>
struct
group
*
getgrgid
(
gid
)
register
gid
;
{
register
struct
group
*
p
;
struct
group
*
getgrent
();
setgrent
();
while
( (
p
=
getgrent
()) &&
p
->
gr_gid
!=
gid
);
endgrent
();
return
(
p
);
}