/[cparse]/cparse/dir-test.c
ViewVC logotype

Contents of /cparse/dir-test.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Nov 24 20:29:32 2004 UTC (9 years, 4 months ago) by clynbech
Branch: MAIN
File MIME type: text/plain
* test1.h: New file.
* test2.h: New file.
* test3.h: New file.
* 00debug.lisp: New file.
* 01debug.lisp: New file.
* dir-test-ffi.lisp: New file.
* dir-test.c: New file.
* uffi-alien.lisp: New file.
* system.lisp: Removed.
1 clynbech 1.1 #include <sys/types.h>
2     #include <dirent.h>
3    
4     main() {
5     DIR *handle;
6     struct dirent *entry;
7     int x;
8    
9     printf("\n\n============\n");
10     handle = opendir("/home/tedchly");
11     for (x=0; x<=5; x++) {
12     entry = readdir(handle);
13     if (entry)
14     printf("Entry: %s\n", entry->d_name);
15     }
16     }
17    

  ViewVC Help
Powered by ViewVC 1.1.5