MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / cJSON_AddItemReferenceToObject

Function cJSON_AddItemReferenceToObject

cJSON.c:2125–2133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2123}
2124
2125CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
2126{
2127 if ((object == NULL) || (string == NULL))
2128 {
2129 return false;
2130 }
2131
2132 return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
2133}
2134
2135CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2136{

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…