MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_ReplaceItemInArray

Function cJSON_ReplaceItemInArray

lib/cJSON.c:2079–2087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2077 cJSON_Delete(c);
2078}
2079void cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
2080{
2081 if (which < 0)
2082 {
2083 return;
2084 }
2085
2086 ReplaceItemInArray(array, (size_t)which, newitem);
2087}
2088
2089void cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)
2090{

Callers

nothing calls this directly

Calls 1

ReplaceItemInArrayFunction · 0.85

Tested by

no test coverage detected