Function cJSON_CreateTrue

Synopsis

#include <cJSON.h>

cJSON * cJSON_CreateTrue(void)

Description

No description yet.

Mentioned in

Source

Lines 2387-2396 in cJSON.c. Line 196 in cJSON.h.

CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_True;
    }

    return item;
}





Add Discussion as Guest

Log in