MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / cJSON_AddTrueToObject

Function cJSON_AddTrueToObject

cJSON.c:2147–2157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2145}
2146
2147CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2148{
2149 cJSON *true_item = cJSON_CreateTrue();
2150 if (add_item_to_object(object, name, true_item, &global_hooks, false))
2151 {
2152 return true_item;
2153 }
2154
2155 cJSON_Delete(true_item);
2156 return NULL;
2157}
2158
2159CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2160{

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…