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

Function cJSON_CreateBool

cpworker/src/cJSON/cJSON.c:2441–2450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2439}
2440
2441CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)
2442{
2443 cJSON *item = cJSON_New_Item(&global_hooks);
2444 if(item)
2445 {
2446 item->type = boolean ? cJSON_True : cJSON_False;
2447 }
2448
2449 return item;
2450}
2451
2452CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)
2453{

Callers 1

cJSON_AddBoolToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected