MCPcopy Create free account
hub / github.com/ByConity/ByConity / cJSON_CreateTrue

Function cJSON_CreateTrue

contrib/cJSON/cJSON.cpp:2273–2282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2271}
2272
2273CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2274{
2275 cJSON *item = cJSON_New_Item(&global_hooks);
2276 if(item)
2277 {
2278 item->type = cJSON_True;
2279 }
2280
2281 return item;
2282}
2283
2284CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)
2285{

Callers 1

cJSON_AddTrueToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected