I am working with Linux system.
DIR *dir;
struct dirent *ent;
while ((ent = readdir (dir)) != NULL) {
printf ("%s\n", ent->d_name);
}
I get "."
, ".."
and some file names as a result.
How can I get rid of "."
and ".."
?
I need those file names for further process.
What's the type of ent->d_name
?? Is it a string or char?