| 18 | #include "../charmap.h" |
| 19 | |
| 20 | int 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 | |
| 35 | int acl_strncasecmp(const char *s1, const char *s2, size_t n) |
| 36 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…