MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / cJSON_AddArrayToObject

Function cJSON_AddArrayToObject

ThirdParty/cjson/cJSON.c:2073–2083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2071}
2072
2073CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2074{
2075 cJSON *array = cJSON_CreateArray();
2076 if (add_item_to_object(object, name, array, &global_hooks, false))
2077 {
2078 return array;
2079 }
2080
2081 cJSON_Delete(array);
2082 return NULL;
2083}
2084
2085CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2086{

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