cJSON_Version: returns a version string

This is useful to programmatically find out the version of cJSON that
has been used (useful in case of scripting language bindings for
example).
This commit is contained in:
Max Bruckner committed 2017-01-12 20:37:29 +01:00
1 parent e7533aa6f0
commit c49ffbfba8
3 files changed
+15

No files matched your search

+3
View File
@@ -382,6 +382,9 @@ int main(void)
"</body>\n"
"</html>\n";
/* print the version */
printf("Version: %s\n", cJSON_Version());
/* Process each json textblock by parsing, then rebuilding: */
doit(text1);
doit(text2);