Function cJSON_DetachItemFromArray

Synopsis

#include <cJSON.h>

cJSON * cJSON_DetachItemFromArray(cJSON *array, int which)

Description

No description yet.

Mentioned in

Source

Lines 2219-2227 in cJSON.c. Line 234 in cJSON.h.

CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)
{
    if (which < 0)
    {
        return NULL;
    }

    return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which));
}





Add Discussion as Guest

Log in