mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
18 lines
278 B
C
18 lines
278 B
C
#include <dirent.h>
|
|
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char** argv) {
|
|
struct dirent* dirent;
|
|
|
|
DIR* dir = opendir(".");
|
|
|
|
while ((dirent = readdir(dir))) {
|
|
printf("found %s\n", dirent->d_name);
|
|
}
|
|
|
|
closedir(dir);
|
|
|
|
return 0;
|
|
}
|