1 2 3 4 5 6 7 8
#include <sys/types.h> #include <dirent.h> void foo() { DIR *dir; struct dirent *d; }