|
@@ -58,6 +58,14 @@ const char *cJSON_GetErrorPtr(void)
|
|
return global_ep;
|
|
return global_ep;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+extern const char* cJSON_Version(void)
|
|
|
|
+{
|
|
|
|
+ static char version[15];
|
|
|
|
+ sprintf(version, "%i.%i.%i", CJSON_VERSION_MAJOR, CJSON_VERSION_MINOR, CJSON_VERSION_PATCH);
|
|
|
|
+
|
|
|
|
+ return version;
|
|
|
|
+}
|
|
|
|
+
|
|
/* case insensitive strcmp */
|
|
/* case insensitive strcmp */
|
|
static int cJSON_strcasecmp(const char *s1, const char *s2)
|
|
static int cJSON_strcasecmp(const char *s1, const char *s2)
|
|
{
|
|
{
|