| 722 | } |
| 723 | |
| 724 | cJSON *cJSON_DetachItemFromArray(cJSON *array, int which) { |
| 725 | cJSON *c = array->child; |
| 726 | while (c && which > 0) c = c->next, which--; |
| 727 | if (!c) return 0; |
| 728 | if (c->prev) c->prev->next = c->next; |
| 729 | if (c->next) c->next->prev = c->prev; |
| 730 | if (c == array->child) array->child = c->next; |
| 731 | c->prev = c->next = 0; |
| 732 | return c; |
| 733 | } |
| 734 | void cJSON_DeleteItemFromArray(cJSON *array, int which) { cJSON_Delete(cJSON_DetachItemFromArray(array, which)); } |
| 735 | cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string) { |
| 736 | int i = 0; |
no outgoing calls
no test coverage detected