MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

cJSON.c:2402–2410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2400}
2401
2402CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2403{
2404 if (which < 0)
2405 {
2406 return false;
2407 }
2408
2409 return cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem);
2410}
2411
2412static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
2413{

Calls 2

get_array_itemFunction · 0.70

Used in the wild real call sites across dependent graphs

searching dependent graphs…