MCPcopy Create free account
hub / github.com/esnet/iperf / cJSON_AddItemReferenceToObject

Function cJSON_AddItemReferenceToObject

src/cjson.c:2080–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2078}
2079
2080CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
2081{
2082 if ((object == NULL) || (string == NULL))
2083 {
2084 return false;
2085 }
2086
2087 return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
2088}
2089
2090CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2091{

Callers 2

send_resultsFunction · 0.85
JSONStream_OutputFunction · 0.85

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…