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

Function cJSON_AddStringToObject

src/cjson.c:2150–2160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2148}
2149
2150CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)
2151{
2152 cJSON *string_item = cJSON_CreateString(string);
2153 if (add_item_to_object(object, name, string_item, &global_hooks, false))
2154 {
2155 return string_item;
2156 }
2157
2158 cJSON_Delete(string_item);
2159 return NULL;
2160}
2161
2162CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)
2163{

Callers 9

iperf_errFunction · 0.85
iperf_exitFunction · 0.85
iperf_on_connectFunction · 0.85
send_parametersFunction · 0.85
send_resultsFunction · 0.85
JSONStream_OutputFunction · 0.85
iperf_print_resultsFunction · 0.85
iperf_json_finishFunction · 0.85
iperf_run_clientFunction · 0.85

Calls 3

cJSON_CreateStringFunction · 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…