Function cJSON_CreateBool

Synopsis

#include <cJSON.h>

cJSON * cJSON_CreateBool(cJSON_bool boolean)

Description

No description yet.

Mentioned in

Source

Lines 2409-2418 in cJSON.c. Line 198 in cJSON.h.

CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = boolean ? cJSON_True : cJSON_False;
    }

    return item;
}





Add Discussion as Guest

Log in