MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_DetachItemFromArray

Function cJSON_DetachItemFromArray

framework/utils/cJSON.c:2101–2109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2099}
2100
2101CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)
2102{
2103if (which < 0)
2104{
2105return NULL;
2106}
2107
2108return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which));
2109}
2110
2111CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)
2112{

Callers 1

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected