opendir() readdir() closedir() are usable in linux too.
Remember to use compiler option Define compatibility names.
_findfirst(), _findnext() and _findclose() are MSVC-functions for that.
/* opendir example*/
#include <stdio.h>
#include <dirent.h>
int main(int argc, char **argv)
{
DIR *dir;
struct dirent *de;
dir = opendir(".");
while(dir) {
de = readdir(dir);
if (!de) break;
printf("%i %s\n", de->d_type, de->d_name);
}
closedir(dir);
return 0;
}