MCPcopy Create free account
hub / github.com/esnet/iperf / update_offset

Function update_offset

src/cjson.c:536–546  ·  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

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…