다음 코드는 윈도우에서 지정한 폴더(디렉토리)의 파일과 하위 폴더의 파일 목록을 출력하는 C언어 소스입니다. #include #include #include #include #include #pragma warning ( disable : 4996 ) #define DIRECTORY 1 #define FILE 0 struct _finddata_t fd; int isDirectory() { if (fd.attrib & _A_SUBDIR) return DIRECTORY; else return FILE; } void FileSearch(char path[]) { intptr_t handle; int check = 0; char path2[_MAX_PATH]; strcpy(path2, path); strcat(..