MCPcopy Index your code
hub / github.com/armink/struct2json / update

Function update

struct2json/src/cJSON.c:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static int update(printbuffer *p)
139{
140 char *str;
141 if (!p || !p->buffer) return 0;
142 str=p->buffer+p->offset;
143 return p->offset+strlen(str);
144}
145
146/* Render the number nicely from the given item into a string. */
147static char *print_number(cJSON *item,printbuffer *p)

Callers 2

print_arrayFunction · 0.85
print_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected