Function cJSON_CreateArrayReference

Synopsis

#include <cJSON.h>

cJSON * cJSON_CreateArrayReference(const cJSON *child)

Description

No description yet.

Mentioned in

Source

Lines 2486-2494 in cJSON.c. Line 212 in cJSON.h.

CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL) {
        item->type = cJSON_Array | cJSON_IsReference;
        item->child = (cJSON*)cast_away_const(child);
    }

    return item;
}





Add Discussion as Guest

Log in