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

Function cJSON_AddRawToObject

src/cjson.c:2162–2172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2160}
2161
2162CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)
2163{
2164 cJSON *raw_item = cJSON_CreateRaw(raw);
2165 if (add_item_to_object(object, name, raw_item, &global_hooks, false))
2166 {
2167 return raw_item;
2168 }
2169
2170 cJSON_Delete(raw_item);
2171 return NULL;
2172}
2173
2174CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2175{

Callers

nothing calls this directly

Calls 3

cJSON_CreateRawFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…