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

Function cson_array_set

cson/cson.c:499–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497 return &val->u.arr;
498}
499int cson_array_set(cson_array *ar, unsigned int ndx, cson_value *v)
500{
501 cson__render(ar->value);
502 char path[256];
503 sprintf(path, "$[%d]", ndx);
504 cson__set(ar->value, path, v);
505 return 0;
506}
507cson_value *cson_array_get(cson_array *ar, unsigned int pos)
508{
509 cson__render(ar->value);

Callers 1

test_gFunction · 0.85

Calls 2

cson__renderFunction · 0.85
cson__setFunction · 0.85

Tested by 1

test_gFunction · 0.68