MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_AddItemReferenceToArray

Function cJSON_AddItemReferenceToArray

framework/utils/cJSON.c:1943–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1941}
1942
1943CJSON_PUBLIC(void) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
1944{
1945if (array == NULL)
1946{
1947return;
1948}
1949
1950add_item_to_array(array, create_reference(item, &global_hooks));
1951}
1952
1953CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
1954{

Callers 1

cJSON.hFile · 0.85

Calls 2

add_item_to_arrayFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected