MCPcopy Index your code
hub / github.com/antirez/botlib / update_offset

Function update_offset

cJSON.c:525–535  ·  view source on GitHub ↗

calculate the new length of the string in a printbuffer and update the offset */

Source from the content-addressed store, hash-verified

523
524/* calculate the new length of the string in a printbuffer and update the offset */
525static 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 */
538static cJSON_bool compare_double(double a, double b)

Callers 3

printFunction · 0.85
print_arrayFunction · 0.85
print_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected