MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_IsBool

Function cJSON_IsBool

general/package/xmdp/src/cjson/cJSON.c:2894–2902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2892
2893
2894CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)
2895{
2896 if (item == NULL)
2897 {
2898 return false;
2899 }
2900
2901 return (item->type & (cJSON_True | cJSON_False)) != 0;
2902}
2903CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item)
2904{
2905 if (item == NULL)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected