MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / update_offset

Function update_offset

TheForceEngine/TFE_System/cJSON.c:530–540  ·  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

528
529/* calculate the new length of the string in a printbuffer and update the offset */
530static void update_offset(printbuffer * const buffer)
531{
532 const unsigned char *buffer_pointer = NULL;
533 if ((buffer == NULL) || (buffer->buffer == NULL))
534 {
535 return;
536 }
537 buffer_pointer = buffer->buffer + buffer->offset;
538
539 buffer->offset += strlen((const char*)buffer_pointer);
540}
541
542/* securely comparison of floating-point variables */
543static 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