MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_strcasecmp

Function cJSON_strcasecmp

modules/freeswitch/esl/src/esl_json.c:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38ESL_DECLARE(const char *)cJSON_GetErrorPtr(void) {return ep;}
39
40static int cJSON_strcasecmp(const char *s1,const char *s2)
41{
42 if (!s1)
43 return (s1==s2)?0:1;
44 if (!s2)
45 return 1;
46 for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2) if(*s1 == 0) return 0;
47 return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
48}
49
50static void *glue_malloc(size_t theSize)
51{

Callers 3

cJSON_GetObjectItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected