MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

TheForceEngine/TFE_System/cJSON.c:2351–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

get_array_itemFunction · 0.85

Tested by

no test coverage detected