MCPcopy Create free account
hub / github.com/SVF-tools/SVF / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

svf/lib/Util/cJSON.cpp:2348–2356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2346}
2347
2348CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2349{
2350 if (which < 0)
2351 {
2352 return false;
2353 }
2354
2355 return cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem);
2356}
2357
2358static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
2359{

Callers

nothing calls this directly

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected