git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added some test results
[tridge/junkcode.git]
/
getgrent.c
1
#include <grp.h>
2
#include <sys/types.h>
3
#include <stdio.h>
4
5
main()
6
{
7
struct group *grp;
8
while (grp = getgrent()) {
9
printf("%s : %d\n", grp->gr_name, (int)grp->gr_gid);
10
}
11
return 0;
12
}