Go to the source code of this file.
Definition at line 76 of file dirent.cpp.
84 result = _findclose(dir->handle);
Definition at line 35 of file dirent.cpp.
41 size_t base_length = strlen(name);
43 strchr(
"/\\", name[base_length - 1]) ?
"*" :
"/*";
45 if((dir = (
DIR *)
malloc(
sizeof *dir)) != 0 &&
46 (dir->
name = (
char *)
malloc(base_length + strlen(all) + 1)) != 0)
48 strcat(strcpy(dir->
name, name), all);
Definition at line 99 of file dirent.cpp.
103 if(dir && dir->handle != -1)
105 if(!dir->result.d_name || _findnext(dir->handle, &dir->info) != -1)
107 result = &dir->result;
108 result->
d_name = dir->info.name;
Definition at line 119 of file dirent.cpp.
121 if(dir && dir->handle != -1)
123 _findclose(dir->handle);
124 dir->handle = _findfirst(dir->name, &dir->info);
125 dir->result.d_name = 0;