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

Function cJSON_AddTrueToObject

src/cjson.c:2102–2112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2100}
2101
2102CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2103{
2104 cJSON *true_item = cJSON_CreateTrue();
2105 if (add_item_to_object(object, name, true_item, &global_hooks, false))
2106 {
2107 return true_item;
2108 }
2109
2110 cJSON_Delete(true_item);
2111 return NULL;
2112}
2113
2114CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2115{

Callers 1

send_parametersFunction · 0.85

Calls 3

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