Lines Matching refs:cnt
11 int cnt; in split() local
13 cnt = 0; in split()
18 result = (char **)realloc(result, sizeof(char *) * (cnt + 1)); in split()
19 result[cnt] = (char *)calloc(1, sizeof(char) * (int)(token - src + 10)); in split()
20 memcpy(result[cnt], src, token - src); in split()
21 result[cnt][token - src] = '\0'; in split()
23 cnt ++; in split()
27 result = (char **)realloc(result, sizeof(char *) * (cnt + 1)); in split()
28 result[cnt] = strdup(src); in split()
29 cnt ++; in split()
32 *size = cnt; in split()
158 int i, cnt, valid; in replace_negative() local
175 cnt = 2; in replace_negative()
179 value = (char *)realloc(value, cnt + 1); in replace_negative()
180 value[cnt - 1] = *found; in replace_negative()
181 value[cnt] = '\0'; in replace_negative()
182 cnt ++; in replace_negative()
224 int cnt; in listdir() local
237 cnt = *num_files; in listdir()
238 *files = (char **)realloc(*files, sizeof(char *) * (cnt + 1)); in listdir()
239 (*files)[cnt] = (char *)malloc(sizeof(char) * ( strlen(name) + 1 + strlen(entry->d_name) + 10)); in listdir()
240 sprintf((*files)[cnt], "%s/%s", name, entry->d_name); in listdir()
241 cnt ++; in listdir()
242 *num_files = cnt; in listdir()