MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_DetachItemFromArray

Function cJSON_DetachItemFromArray

general/package/xmdp/src/cjson/cJSON.c:2226–2234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2224}
2225
2226CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)
2227{
2228 if (which < 0)
2229 {
2230 return NULL;
2231 }
2232
2233 return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which));
2234}
2235
2236CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)
2237{

Callers 1

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected