calculate the new length of the string in a printbuffer and update the offset */
| 460 | |
| 461 | /* calculate the new length of the string in a printbuffer and update the offset */ |
| 462 | static void update_offset(printbuffer * const buffer) |
| 463 | { |
| 464 | const unsigned char *buffer_pointer = NULL; |
| 465 | if ((buffer == NULL) || (buffer->buffer == NULL)) |
| 466 | { |
| 467 | return; |
| 468 | } |
| 469 | buffer_pointer = buffer->buffer + buffer->offset; |
| 470 | |
| 471 | buffer->offset += strlen((const char*)buffer_pointer); |
| 472 | } |
| 473 | |
| 474 | /* Render the number nicely from the given item into a string. */ |
| 475 | static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) |
no outgoing calls
no test coverage detected