source:
orxonox.OLD/orxonox/trunk/src/subprojects/testmain/testmain.cc
@
4793
Last change on this file since 4793 was 4666, checked in by bensch, 19 years ago | |
---|---|
File size: 218 bytes |
Rev | Line | |
---|---|---|
[4666] | 1 | #include <dirent.h> |
2 | #include <stdio.h> | |
3 | ||
[3571] | 4 | int main(int argc, char** argv) |
5 | { | |
[4666] | 6 | DIR* directory; |
7 | directory = opendir("/"); | |
8 | dirent* test; | |
[3571] | 9 | |
[4666] | 10 | while(test = readdir(directory)) |
11 | { | |
12 | printf("%s\n", test->d_name); | |
13 | } | |
14 | ||
15 | ||
[3571] | 16 | } |
Note: See TracBrowser
for help on using the repository browser.