MCPcopy Create free account
hub / github.com/antirez/botlib / cJSON_IsBool

Function cJSON_IsBool

cJSON.c:2908–2916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2906
2907
2908CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)
2909{
2910 if (item == NULL)
2911 {
2912 return false;
2913 }
2914
2915 return (item->type & (cJSON_True | cJSON_False)) != 0;
2916}
2917CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item)
2918{
2919 if (item == NULL)

Callers 1

cJSON_SelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected