MCPcopy Create free account
hub / github.com/OpenIPC/firmware / update_offset

Function update_offset

general/package/xmdp/src/cjson/cJSON.c:523–533  ·  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

521
522/* calculate the new length of the string in a printbuffer and update the offset */
523static void update_offset(printbuffer * const buffer)
524{
525 const unsigned char *buffer_pointer = NULL;
526 if ((buffer == NULL) || (buffer->buffer == NULL))
527 {
528 return;
529 }
530 buffer_pointer = buffer->buffer + buffer->offset;
531
532 buffer->offset += strlen((const char*)buffer_pointer);
533}
534
535/* securely comparison of floating-point variables */
536static 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