casting char to int when using tolower (thanks to Jukkas careful cosmetic checking!)
72a8eb41
1 file(s) · +1 −1
| 624 | 624 | int |
|
| 625 | 625 | strcaseido(const char *text, const char *pattern) { |
|
| 626 | 626 | for(; *text && *pattern; text++) |
|
| 627 | - | if (tolower(*text) == tolower(*pattern)) |
|
| 627 | + | if(tolower((int)*text) == tolower((int)*pattern)) |
|
| 628 | 628 | pattern++; |
|
| 629 | 629 | return !*pattern; |
|
| 630 | 630 | } |