MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_DetachItemFromArray

Function cJSON_DetachItemFromArray

libapp2sys/src/main/cpp/cjson/cJSON.c:2109–2117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2107}
2108
2109CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which)
2110{
2111 if (which < 0)
2112 {
2113 return NULL;
2114 }
2115
2116 return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which));
2117}
2118
2119CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which)
2120{

Callers 1

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected