Changeset 4666 in orxonox.OLD for orxonox/trunk/src/subprojects/testmain
- Timestamp:
- Jun 23, 2005, 4:34:44 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/subprojects/testmain/testmain.cc
r3572 r4666 1 #include <dirent.h> 2 #include <stdio.h> 3 1 4 int main(int argc, char** argv) 2 5 { 6 DIR* directory; 7 directory = opendir("/"); 8 dirent* test; 9 10 while(test = readdir(directory)) 11 { 12 printf("%s\n", test->d_name); 13 } 14 3 15 4 16 }
Note: See TracChangeset
for help on using the changeset viewer.