calculate the new length of the string in a printbuffer and update the offset */
| 523 | |
| 524 | /* calculate the new length of the string in a printbuffer and update the offset */ |
| 525 | static void update_offset(printbuffer * const buffer) |
| 526 | { |
| 527 | const unsigned char *buffer_pointer = NULL; |
| 528 | if ((buffer == NULL) || (buffer->buffer == NULL)) |
| 529 | { |
| 530 | return; |
| 531 | } |
| 532 | buffer_pointer = buffer->buffer + buffer->offset; |
| 533 | |
| 534 | buffer->offset += strlen((const char*)buffer_pointer); |
| 535 | } |
| 536 | |
| 537 | /* securely comparison of floating-point variables */ |
| 538 | static cJSON_bool compare_double(double a, double b) |
no outgoing calls
no test coverage detected