Lines Matching defs:items
337 char **items = (char **)malloc(sizeof(char*) * itemCounts);
338 INIT_ERROR_CHECK(items != NULL, return NULL, "No enough memory to store items");
345 INIT_LOGV("Too many items,expand size");
346 char **expand = (char **)(realloc(items, sizeof(char *) * itemCounts));
347 INIT_ERROR_CHECK(expand != NULL, FreeStringVector(items, count);
349 items = expand;
352 items[count] = (char *)calloc(len + 1, sizeof(char));
353 INIT_CHECK(items[count] != NULL, FreeStringVector(items, count);
355 if (strncpy_s(items[count], len + 1, p, len) != EOK) {
357 FreeStringVector(items, count);
364 return items;