MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_CreateTrue

Function cJSON_CreateTrue

libapp2sys/src/main/cpp/cjson/cJSON.c:2265–2274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2263}
2264
2265CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2266{
2267 cJSON *item = cJSON_New_Item(&global_hooks);
2268 if(item)
2269 {
2270 item->type = cJSON_True;
2271 }
2272
2273 return item;
2274}
2275
2276CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)
2277{

Callers 1

cJSON_AddTrueToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected