MCPcopy Create free account
hub / github.com/Bwar/CJsonObject / cJSON_CreateBool

Function cJSON_CreateBool

cJSON.c:990–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988 return item;
989}
990cJSON *cJSON_CreateBool(int b)
991{
992 cJSON *item = cJSON_New_Item();
993 if (item)
994 item->type = b ? cJSON_True : cJSON_False;
995 return item;
996}
997cJSON *cJSON_CreateDouble(double num, int sign)
998{
999 cJSON *item = cJSON_New_Item();

Callers 3

AddMethod · 0.85
ReplaceMethod · 0.85
AddAsFirstMethod · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected