calculate the new length of the string in a printbuffer and update the offset */
| 470 | |
| 471 | /* calculate the new length of the string in a printbuffer and update the offset */ |
| 472 | static void update_offset(printbuffer * const buffer) |
| 473 | { |
| 474 | const unsigned char *buffer_pointer = NULL; |
| 475 | if ((buffer == NULL) || (buffer->buffer == NULL)) |
| 476 | { |
| 477 | return; |
| 478 | } |
| 479 | buffer_pointer = buffer->buffer + buffer->offset; |
| 480 | |
| 481 | buffer->offset += strlen((const char*)buffer_pointer); |
| 482 | } |
| 483 | |
| 484 | /* Render the number nicely from the given item into a string. */ |
| 485 | static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) |
no outgoing calls
no test coverage detected