MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_AddArrayToObject

Function cJSON_AddArrayToObject

external/cJSON/cJSON.c:2246–2256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2244}
2245
2246CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2247{
2248 cJSON *array = cJSON_CreateArray();
2249 if (add_item_to_object(object, name, array, &global_hooks, false))
2250 {
2251 return array;
2252 }
2253
2254 cJSON_Delete(array);
2255 return NULL;
2256}
2257
2258CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2259{

Callers

nothing calls this directly

Calls 3

cJSON_CreateArrayFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected