MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_CreateBool

Function cJSON_CreateBool

lib/cJSON.c:2145–2154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2143}
2144
2145cJSON *cJSON_CreateBool(cjbool b)
2146{
2147 cJSON *item = cJSON_New_Item();
2148 if(item)
2149 {
2150 item->type = b ? cJSON_True : cJSON_False;
2151 }
2152
2153 return item;
2154}
2155
2156cJSON *cJSON_CreateNumber(double num)
2157{

Callers

nothing calls this directly

Calls 1

cJSON_New_ItemFunction · 0.70

Tested by

no test coverage detected