| 136 | } |
| 137 | |
| 138 | static 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. */ |
| 147 | static char *print_number(cJSON *item,printbuffer *p) |
no outgoing calls
no test coverage detected