#include #include #include #include #include int main(int argc, char **argv) { struct _finddata_t d; intptr_t handle = _findfirst ("*", &d); if (handle == -1) return 1; while (_findnext(handle, &d) == 0) printf ("%s\n", d.name); _findclose (handle); return 0; }