| 2277 | } |
| 2278 | |
| 2279 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemFromArray(cJSON *array, int which) |
| 2280 | { |
| 2281 | if (which < 0) |
| 2282 | { |
| 2283 | return NULL; |
| 2284 | } |
| 2285 | |
| 2286 | return cJSON_DetachItemViaPointer(array, get_array_item(array, (size_t)which)); |
| 2287 | } |
| 2288 | |
| 2289 | CJSON_PUBLIC(void) cJSON_DeleteItemFromArray(cJSON *array, int which) |
| 2290 | { |
searching dependent graphs…