We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c914c0 commit cb1df2fCopy full SHA for cb1df2f
README.md
@@ -298,6 +298,7 @@ In this example we want to build and parse the following JSON:
298
Let's build the above JSON and print it to a string:
299
```c
300
//create a monitor with a list of supported resolutions
301
+//NOTE: Returns a heap allocated string, you are required to free it after use.
302
char* create_monitor(void)
303
{
304
const unsigned int resolution_numbers[3][2] = {
@@ -373,6 +374,7 @@ end:
373
374
375
Alternatively we can use the `cJSON_Add...ToObject` helper functions to make our lifes a little easier:
376
377
378
char *create_monitor_with_helpers(void)
379
380
0 commit comments