MCPcopy Create free account
hub / github.com/antirez/botlib / cJSON_DetachItemFromArray

Function cJSON_DetachItemFromArray

cJSON.c:2219–2227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2217}
2218
2219CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)
2220{
2221 if (which < 0)
2222 {
2223 return NULL;
2224 }
2225
2226 return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which));
2227}
2228
2229CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)
2230{

Callers 1

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected