repo.or.cz
/
munin-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
added a conflict
[munin-test.git]
/
uh.c
blob
da2ba6f7bc5d1390dcd5698ac656e03e9d8c2c6c
1
#include <stddef.h>
2
3
#include <stdio.h>
4
#include <sys/types.h>
5
#include <dirent.h>
6
7
int
8
main
(
void
)
9
{
10
DIR
*
dp
;
11
struct
dirent
*
ep
;
12
13
dp
=
opendir
(
"/etc/munin/plugins"
);
14
if
(
dp
!=
NULL
)
15
{
16
while
(
ep
=
readdir
(
dp
))
17
puts
(
ep
->
d_name
);
18
(
void
)
closedir
(
dp
);
19
}
20
else
21
puts
(
"Couldn't open the directory."
);
22
23
return
0
;
24
}
25
26