MCPcopy Create free account
hub / github.com/binbyu/Reader / cJSON_AddTrueToObject

Function cJSON_AddTrueToObject

opensrc/cjson/cJSON.c:1977–1987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1975}
1976
1977CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
1978{
1979 cJSON *true_item = cJSON_CreateTrue();
1980 if (add_item_to_object(object, name, true_item, &global_hooks, false))
1981 {
1982 return true_item;
1983 }
1984
1985 cJSON_Delete(true_item);
1986 return NULL;
1987}
1988
1989CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
1990{

Callers

nothing calls this directly

Calls 3

cJSON_CreateTrueFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected