MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

external/cJSON/cJSON.c:2417–2425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2415}
2416
2417CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2418{
2419 if (which < 0)
2420 {
2421 return false;
2422 }
2423
2424 return cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem);
2425}
2426
2427static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
2428{

Callers

nothing calls this directly

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected