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

Function cJSONUtils_GeneratePatches

cpworker/src/cJSON/cJSON_Utils.c:1311–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1309}
1310
1311CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatches(cJSON *const from, cJSON *const to)
1312{
1313 cJSON *patches = NULL;
1314
1315 if ((from == NULL) || (to == NULL))
1316 {
1317 return NULL;
1318 }
1319
1320 patches = cJSON_CreateArray();
1321 create_patches(patches, (const unsigned char *)"", from, to, false);
1322
1323 return patches;
1324}
1325
1326CJSON_PUBLIC(cJSON *) cJSONUtils_GeneratePatchesCaseSensitive(cJSON *const from, cJSON *const to)
1327{

Callers

nothing calls this directly

Calls 2

cJSON_CreateArrayFunction · 0.85
create_patchesFunction · 0.85

Tested by

no test coverage detected