Changeset 292 in Main for trunk/Common
- Timestamp:
- Oct 9, 2024, 7:49:15 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/dir.c
r261 r292 72 72 char** r = malloc(sizeof(*r)); 73 73 struct dirent* d; 74 char** old; 75 int len; 76 int i; 74 77 r[0] = NULL; 75 78 while((d = readdir(dir)) != NULL) { … … 80 83 free(p); 81 84 82 char** old = r; 83 int i; 85 old = r; 84 86 for(i = 0; old[i] != NULL; i++) 85 87 ; … … 91 93 } 92 94 } 93 int len;94 95 for(len = 0; r[len] != NULL; len++) 95 96 ; 96 97 qsort(r, len, sizeof(char*), cm_sort); 97 98 98 char** old = r; 99 int i; 99 old = r; 100 100 for(i = 0; old[i] != NULL; i++) 101 101 ;
Note:
See TracChangeset
for help on using the changeset viewer.