MCPcopy Index your code
hub / github.com/antirez/botlib / cJSON_AddArrayToObject

Function cJSON_AddArrayToObject

cJSON.c:2171–2181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2169}
2170
2171CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2172{
2173 cJSON *array = cJSON_CreateArray();
2174 if (add_item_to_object(object, name, array, &global_hooks, false))
2175 {
2176 return array;
2177 }
2178
2179 cJSON_Delete(array);
2180 return NULL;
2181}
2182
2183CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2184{

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