Function cJSON_IsTrue

Synopsis

#include <cJSON.h>

cJSON_bool cJSON_IsTrue(const cJSON *const item)

Description

No description yet.

Mentioned in

Source

Lines 2897-2905 in cJSON.c. Line 185 in cJSON.h.

CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item)
{
    if (item == NULL)
    {
        return false;
    }

    return (item->type & 0xff) == cJSON_True;
}





Add Discussion as Guest

Log in