MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / cJSON_AddArrayToObject

Function cJSON_AddArrayToObject

TheForceEngine/TFE_System/cJSON.c:2180–2190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2178}
2179
2180CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2181{
2182 cJSON *array = cJSON_CreateArray();
2183 if (add_item_to_object(object, name, array, &global_hooks, false))
2184 {
2185 return array;
2186 }
2187
2188 cJSON_Delete(array);
2189 return NULL;
2190}
2191
2192CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item)
2193{

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