MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

cpworker/src/cJSON/cJSON.c:2364–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362}
2363
2364CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2365{
2366 if (which < 0)
2367 {
2368 return false;
2369 }
2370
2371 return cJSON_ReplaceItemViaPointer(array, get_array_item(array, (size_t)which), newitem);
2372}
2373
2374static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
2375{

Callers

nothing calls this directly

Calls 2

get_array_itemFunction · 0.70

Tested by

no test coverage detected