Go to the source code of this file.
40 strchr(
"/\\",
name[base_length - 1]) ?
"*" :
"/*";
42 if((dir = (
DIR *) malloc(
sizeof *dir)) != 0 &&
43 (dir->
name = (
char *) malloc(base_length + strlen(all) + 1)) != 0)
45 strcat(strcpy(dir->
name,
name), all);
handle_type handle
Definition: dirent.c:26
local const int base_length[LENGTH_CODES]
Definition: trees.h:118
char * d_name
Definition: dirent.h:23
char * name
Definition: dirent.c:29
string name
Definition: cubesat2obj.cpp:6
ptrdiff_t handle_type
Definition: dirent.c:22
struct dirent result
Definition: dirent.c:28
struct _finddata_t info
Definition: dirent.c:27
82 result = _findclose(dir->handle);
101 if(dir && dir->handle != -1)
103 if(!dir->result.d_name || _findnext(dir->handle, &dir->info) != -1)
105 result = &dir->result;
106 result->
d_name = dir->info.name;
char * d_name
Definition: dirent.h:23
119 if(dir && dir->handle != -1)
121 _findclose(dir->handle);
122 dir->handle = (
handle_type) _findfirst(dir->name, &dir->info);
123 dir->result.d_name = 0;
ptrdiff_t handle_type
Definition: dirent.c:22