MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_CreateTrue

Function cJSON_CreateTrue

framework/utils/cJSON.c:2257–2266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2255}
2256
2257CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2258{
2259 cJSON *item = cJSON_New_Item(&global_hooks);
2260 if(item)
2261 {
2262 item->type = cJSON_True;
2263 }
2264
2265 return item;
2266}
2267
2268CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)
2269{

Callers 1

cJSON_AddTrueToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected