What happens in C function readdir() from dirent.h? – Debian
I'm doing a school assignment and the task at hand is to count the files and folders recursively. I use the readdir() function, it seems to iterate through the directory I gave it. int listdir(const char *path) { struct dirent…