MCPcopy Create free account
hub / github.com/Netis/cloud-probe / update_offset

Function update_offset

cpworker/src/cJSON/cJSON.c:533–543  ·  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

531
532/* calculate the new length of the string in a printbuffer and update the offset */
533static 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 */
546static 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