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

Function cJSON_CreateTrue

opensrc/cjson/cJSON.c:2259–2268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

cJSON_AddTrueToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected