MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / get_dos_drive_list

Function get_dos_drive_list

src/askloc.c:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116void get_dos_drive_list(struct td_list_head *list);
117
118void get_dos_drive_list(struct td_list_head *list)
119{
120 int i;
121 for(i='a';i<='z';i++)
122 {
123 file_info_t *new_drive;
124 new_drive=(file_info_t*)MALLOC(sizeof(*new_drive));
125 new_drive->name=(char*)MALLOC(4);
126 sprintf(new_drive->name, "%c:/", i);
127 new_drive->st_mode=LINUX_S_IFDIR|LINUX_S_IRWXUGO;
128 td_list_add_tail(&new_drive->list, list);
129 }
130}
131#endif
132static void set_parent_directory(char *dst_directory)
133{

Callers 1

askloc.cFile · 0.85

Calls 2

MALLOCFunction · 0.85
td_list_add_tailFunction · 0.85

Tested by

no test coverage detected