Home
last modified time | relevance | path

Searched refs:cJSON_strdup (Results 1 - 3 of 3) sorted by relevance

/third_party/cJSON/
H A DcJSON.c200 static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks) in cJSON_strdup() function
579 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring()
2276 new_key = (char*)cJSON_strdup((const unsigned char*)string, hooks); in add_item_to_object()
2630 replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in replace_item_in_object()
2772 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in cJSON_CreateString()
2822 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks); in cJSON_CreateRaw()
3041 newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate()
3049 newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned char*)item->string, &global_hooks); in cJSON_Duplicate()
/third_party/vulkan-loader/loader/
H A DcJSON.c60 static char *cJSON_strdup(const VkAllocationCallbacks *pAllocator, const char *str) { in cJSON_strdup() function
568 out = cJSON_strdup(item->pAllocator, "null"); in print_value()
571 out = cJSON_strdup(item->pAllocator, "false"); in print_value()
574 out = cJSON_strdup(item->pAllocator, "true"); in print_value()
/third_party/cJSON/tests/
H A Dmisc_tests.c602 char *name = (char *)cJSON_strdup((const unsigned char *)"number", &global_hooks); in cjson_add_item_to_object_should_not_use_after_free_when_string_is_aliased()

Completed in 7 milliseconds