MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_AddArrayToObject

Function cJSON_AddArrayToObject

cpworker/src/cJSON/cJSON.c:2193–2203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2191}
2192
2193CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2194{
2195 cJSON *array = cJSON_CreateArray();
2196 if (add_item_to_object(object, name, array, &global_hooks, false))
2197 {
2198 return array;
2199 }
2200
2201 cJSON_Delete(array);
2202 return NULL;
2203}
2204
2205CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2206{

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