0

I'm making a program to walk through a directory and all of its subdirectories. And in order not to go to the parent directory, I need to skip the "." and ".."

I tried:

char *name = dir_struct -> d_name;
if (name == "." || name == "..") {
     continue
}

0 Answers0