Searched refs:cJSON_malloc (Results 1 – 1 of 1) sorted by relevance
42 static void *(*cJSON_malloc)(size_t sz) = malloc; variable50 if (!(copy = (char *)cJSON_malloc(len))) in cJSON_strdup()58 cJSON_malloc = malloc; in cJSON_InitHooks()63 cJSON_malloc = (hooks->malloc_fn) ? hooks->malloc_fn : malloc; in cJSON_InitHooks()69 cJSON *node = (cJSON *)cJSON_malloc(sizeof(cJSON)); in cJSON_New_Item()159 newbuffer = (char *)cJSON_malloc(newsize); in ensure()189 str = (char *)cJSON_malloc(2); /* special case for 0. */ in print_number()197 str = (char *)cJSON_malloc( in print_number()205 str = (char *)cJSON_malloc(64); /* This is a nice tradeoff. */ in print_number()279 out = (char *)cJSON_malloc( in parse_string()[all …]