MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / cJSON_AddArrayToObject

Function cJSON_AddArrayToObject

cJSON.c:2231–2241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2229}
2230
2231CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2232{
2233 cJSON *array = cJSON_CreateArray();
2234 if (add_item_to_object(object, name, array, &global_hooks, false))
2235 {
2236 return array;
2237 }
2238
2239 cJSON_Delete(array);
2240 return NULL;
2241}
2242
2243CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2244{

Calls 3

cJSON_CreateArrayFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…