| 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; |
| 737 | cJSON *c = object->child; |
| 738 | while (c && cJSON_strcasecmp(c->string, string)) i++, c = c->next; |
| 739 | if (c) return cJSON_DetachItemFromArray(object, i); |
| 740 | return 0; |
| 741 | } |
| 742 | void cJSON_DeleteItemFromObject(cJSON *object, const char *string) { |
| 743 | cJSON_Delete(cJSON_DetachItemFromObject(object, string)); |
| 744 | } |
no test coverage detected