mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
changed to cJSON_PrintPreallocated, added flag in printbuffer
This commit is contained in:

committed by
Max Bruckner

parent
602c241a0b
commit
de93d76d0b
2
cJSON.h
2
cJSON.h
@ -84,7 +84,7 @@ extern char *cJSON_PrintUnformatted(const cJSON *item);
|
||||
/* Render a cJSON entity to text using a buffered strategy. prebuffer is a guess at the final size. guessing well reduces reallocation. fmt=0 gives unformatted, =1 gives formatted */
|
||||
extern char *cJSON_PrintBuffered(const cJSON *item, int prebuffer, int fmt);
|
||||
/* Render a cJSON entity to text using a buffer already allocated in memory with length buf_len */
|
||||
extern int cJSON_PrintMallocedBuffer(cJSON *item, char *buf, const int len, int fmt);
|
||||
extern int cJSON_PrintPreallocated(cJSON *item, char *buf, const int len, const int fmt);
|
||||
/* Delete a cJSON entity and all subentities. */
|
||||
extern void cJSON_Delete(cJSON *c);
|
||||
|
||||
|
Reference in New Issue
Block a user