calculate the new length of the string in a printbuffer and update the offset */
| 574 | |
| 575 | /* calculate the new length of the string in a printbuffer and update the offset */ |
| 576 | static void update_offset(printbuffer * const buffer) |
| 577 | { |
| 578 | const unsigned char *buffer_pointer = NULL; |
| 579 | if ((buffer == NULL) || (buffer->buffer == NULL)) |
| 580 | { |
| 581 | return; |
| 582 | } |
| 583 | buffer_pointer = buffer->buffer + buffer->offset; |
| 584 | |
| 585 | buffer->offset += strlen((const char*)buffer_pointer); |
| 586 | } |
| 587 | |
| 588 | /* securely comparison of floating-point variables */ |
| 589 | static cJSON_bool compare_double(double a, double b) |
no outgoing calls
no test coverage detected