git.samba.org
/
tridge
/
junkcode.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
confirm results
[tridge/junkcode.git]
/
getpwent.c
1
#include <stdio.h>
2
#include <pwd.h>
3
#include <sys/types.h>
4
5
int main(void)
6
{
7
struct passwd *pwd;
8
9
setpwent();
10
11
while ((pwd = getpwent())) {
12
printf("%s\n", pwd->pw_name);
13
}
14
15
endpwent();
16
17
return 0;
18
}