cJSON

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

commit cb1df2f88c0d335e031ade0d52fd6a59528c622f
parent 2c914c073d71701b596fa58a84529712a0bd1eeb
Author: Max Bruckner <max@maxbruckner.de>
Date:   Mon,  3 Dec 2018 23:07:36 +0100

README: Add note about needing to free print results in examples

Diffstat:
MREADME.md | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -298,6 +298,7 @@ In this example we want to build and parse the following JSON: Let's build the above JSON and print it to a string: ```c //create a monitor with a list of supported resolutions +//NOTE: Returns a heap allocated string, you are required to free it after use. char* create_monitor(void) { const unsigned int resolution_numbers[3][2] = { @@ -373,6 +374,7 @@ end: Alternatively we can use the `cJSON_Add...ToObject` helper functions to make our lifes a little easier: ```c +//NOTE: Returns a heap allocated string, you are required to free it after use. char *create_monitor_with_helpers(void) { const unsigned int resolution_numbers[3][2] = {