MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

framework/utils/cJSON.c:2205–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2203}
2204
2205CJSON_PUBLIC(void) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2206{
2207if (which < 0)
2208{
2209return;
2210}
2211
2212cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem);
2213}
2214
2215static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
2216{

Callers

nothing calls this directly

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected