| 39 | const char *cJSON_GetErrorPtr() {return ep;} |
| 40 | |
| 41 | static int cJSON_strcasecmp(const char *s1,const char *s2) |
| 42 | { |
| 43 | if (!s1) return (s1==s2)?0:1; |
| 44 | if (!s2) return 1; |
| 45 | for(; tolower(*s1) == tolower(*s2); ++s1, ++s2) if(*s1 == 0) return 0; |
| 46 | return tolower(* reinterpret_cast<const unsigned char *> (s1) ) - tolower(* reinterpret_cast<const unsigned char *> (s2) ); |
| 47 | } |
| 48 | |
| 49 | static void *(*cJSON_malloc)(std::size_t sz) = malloc; |
| 50 | static void (*cJSON_free)(void *ptr) = free; |
no outgoing calls
no test coverage detected