Project

General

Profile

Bug #9409 » test.c

ganaware (Nayuta Taga), 01/15/2014 02:00 AM

 
1
#include <dirent.h>
2
#include <stdio.h>
3

    
4
int main() {
5
	struct dirent *d;
6
	DIR *dir = opendir(".");
7
	while ((d = readdir(dir))) {
8
		printf("%s\n", d->d_name);
9
	}
10
	closedir(dir);
11
	return 0;
12
}