added a conflict
[munin-test.git] / uh.c
blobda2ba6f7bc5d1390dcd5698ac656e03e9d8c2c6c
1 #include <stddef.h>
3 #include <stdio.h>
4 #include <sys/types.h>
5 #include <dirent.h>
7 int
8 main (void)
10 DIR *dp;
11 struct dirent *ep;
13 dp = opendir ("/etc/munin/plugins");
14 if (dp != NULL)
16 while (ep = readdir (dp))
17 puts (ep->d_name);
18 (void) closedir (dp);
20 else
21 puts ("Couldn't open the directory.");
23 return 0;