MCPcopy Create free account
hub / github.com/acl-dev/acl / cJSON_PrintBuffered

Function cJSON_PrintBuffered

lib_acl/samples/json/json5/cJSON.cpp:345–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343char *cJSON_PrintUnformatted(cJSON *item) {return print_value(item,0,0,0);}
344
345char *cJSON_PrintBuffered(cJSON *item,int prebuffer,int fmt)
346{
347 printbuffer p;
348 p.buffer=(char*)cJSON_malloc(prebuffer);
349 p.length=prebuffer;
350 p.offset=0;
351 return print_value(item,0,fmt,&p);
352 return p.buffer;
353}
354
355
356/* Parser core - when encountering text, process appropriately. */

Callers

nothing calls this directly

Calls 1

print_valueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…