cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 84b48121bbdc92a88a54fce6d59c8ca37c412031
parent f10e2f884a55c285b9c99c1a640e14333180470f
Author: Max Bruckner <max@maxbruckner.de>
Date:   Tue,  6 Dec 2016 08:46:48 +0700

header: explain PrintPreallocated return value

Diffstat:
McJSON.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cJSON.h b/cJSON.h @@ -83,7 +83,7 @@ extern char *cJSON_Print(const cJSON *item); 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 */ +/* Render a cJSON entity to text using a buffer already allocated in memory with length buf_len. Returns 1 on success and 0 on failure. */ 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);