calculate the new length of the string in a printbuffer and update the offset */
| 531 | |
| 532 | /* calculate the new length of the string in a printbuffer and update the offset */ |
| 533 | static void update_offset(printbuffer * const buffer) |
| 534 | { |
| 535 | const unsigned char *buffer_pointer = NULL; |
| 536 | if ((buffer == NULL) || (buffer->buffer == NULL)) |
| 537 | { |
| 538 | return; |
| 539 | } |
| 540 | buffer_pointer = buffer->buffer + buffer->offset; |
| 541 | |
| 542 | buffer->offset += strlen((const char*)buffer_pointer); |
| 543 | } |
| 544 | |
| 545 | /* securely comparison of floating-point variables */ |
| 546 | static cJSON_bool compare_double(double a, double b) |
no outgoing calls
no test coverage detected