MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_CreateTrue

Function cJSON_CreateTrue

cpworker/src/cJSON/cJSON.c:2419–2428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2417}
2418
2419CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
2420{
2421 cJSON *item = cJSON_New_Item(&global_hooks);
2422 if(item)
2423 {
2424 item->type = cJSON_True;
2425 }
2426
2427 return item;
2428}
2429
2430CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)
2431{

Callers 1

cJSON_AddTrueToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected