MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / print_array

Function print_array

tests/tools/cson_test.c:263–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 }
262}
263static void print_array(cson_array *arr, int indent)
264{
265 printf("\n%*s[\n", indent, "");
266 int n = cson_array_length_get(arr);
267 for (int i = 0; i < n; ++i) {
268 printf("%*s", indent + 4, "");
269 print_value(cson_array_get(arr, i), indent + 4);
270 }
271 printf("%*s]\n", indent, "");
272}
273static void print_obj(cson_object *obj, int indent)
274{
275 printf("%*s{\n", indent, "");

Callers 1

print_valueFunction · 0.85

Calls 3

cson_array_length_getFunction · 0.85
print_valueFunction · 0.85
cson_array_getFunction · 0.85

Tested by

no test coverage detected