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