Skip to content

Instantly share code, notes, and snippets.

@tarcisio-marinho
Created December 13, 2017 17:42
Show Gist options
  • Save tarcisio-marinho/f20ff3aae48e418229cb58c9cb770c66 to your computer and use it in GitHub Desktop.
Save tarcisio-marinho/f20ff3aae48e418229cb58c9cb770c66 to your computer and use it in GitHub Desktop.
find dirs
else if(ent->d_type == 4){ // it's a directory
if(!(strcmp(ent->d_name, "..") == 0 || strcmp(ent->d_name, ".") == 0)){
find_files(files, new_directory); // recursive call
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment