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

Function cJSON_IsTrue

cJSON.c:2897–2905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2895}
2896
2897CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item)
2898{
2899 if (item == NULL)
2900 {
2901 return false;
2902 }
2903
2904 return (item->type & 0xff) == cJSON_True;
2905}
2906
2907
2908CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected