Lines Matching refs:names
789 char **entries = 0, **names = 0;
863 /* Allocate space for the names and the objects */
866 names = (char **)cJSON_malloc(item->pAllocator, numentries * sizeof(char *));
867 if (!names) {
872 memset(names, 0, sizeof(char *) * numentries);
879 names[i] = str = print_string_ptr(item->pAllocator, child->string, 0);
895 if (names[i]) cJSON_Free(item->pAllocator, names[j]);
898 cJSON_Free(item->pAllocator, names);
911 tmplen = strlen(names[j]);
912 memcpy(ptr, names[j], tmplen);
922 cJSON_Free(item->pAllocator, names[j]);
926 cJSON_Free(item->pAllocator, names);