MCPcopy Create free account
hub / github.com/esnet/iperf / cJSON_CreateBool

Function cJSON_CreateBool

src/cjson.c:2429–2438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2427}
2428
2429CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)
2430{
2431 cJSON *item = cJSON_New_Item(&global_hooks);
2432 if(item)
2433 {
2434 item->type = boolean ? cJSON_True : cJSON_False;
2435 }
2436
2437 return item;
2438}
2439
2440CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)
2441{

Callers 2

iperf_json_printfFunction · 0.85
cJSON_AddBoolToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…