MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_DetachItemFromArray

Function cJSON_DetachItemFromArray

cpworker/src/cJSON/cJSON.c:2241–2249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2239}
2240
2241CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)
2242{
2243 if (which < 0)
2244 {
2245 return NULL;
2246 }
2247
2248 return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which));
2249}
2250
2251CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)
2252{

Callers 1

Calls 2

get_array_itemFunction · 0.70

Tested by

no test coverage detected