MCPcopy Index your code
hub / github.com/armink/struct2json / cJSON_PrintBuffered

Function cJSON_PrintBuffered

struct2json/src/cJSON.c:346–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

print_valueFunction · 0.85

Tested by

no test coverage detected