char* path; scanf("%20[^\r]",path); DIR* dir = opendir(path); if (dir) { printf("Directory Exists"); closedir(dir); } else if (ENOENT == errno) { printf("Directory Exist"); } else { printf("Directory not Exist"); }
char path[100]; scanf ("%20[^\r]", path);
path
char path[21];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)