MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_AddFalseToObject

Function cJSON_AddFalseToObject

general/package/xmdp/src/cjson/cJSON.c:2106–2116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2104}
2105
2106CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2107{
2108 cJSON *false_item = cJSON_CreateFalse();
2109 if (add_item_to_object(object, name, false_item, &global_hooks, false))
2110 {
2111 return false_item;
2112 }
2113
2114 cJSON_Delete(false_item);
2115 return NULL;
2116}
2117
2118CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2119{

Callers

nothing calls this directly

Calls 3

cJSON_CreateFalseFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected