MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_strcasecmp

Function acl_strcasecmp

lib_acl/src/stdlib/string/acl_strcasecmp.c:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "../charmap.h"
19
20int acl_strcasecmp(const char *s1, const char *s2)
21{
22 const unsigned char *cm = maptolower,
23 *us1 = (const unsigned char *) s1,
24 *us2 = (const unsigned char *) s2;
25
26 while (cm[*us1] == cm[*us2]) {
27 if (*us1 == '\0')
28 return (0);
29 us1++;
30 us2++;
31 }
32 return (cm[*us1] - cm[*us2]);
33}
34
35int acl_strncasecmp(const char *s1, const char *s2, size_t n)
36{

Callers 8

search_match_nodeFunction · 0.85
xml_parse_right_tagFunction · 0.85
search_match_nodeFunction · 0.85
xml_parse_right_tagFunction · 0.85
search_match_nodeFunction · 0.85
xml_parse_right_tagFunction · 0.85
equalMethod · 0.85
compareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…