mirror of https://github.com/flysand7/ciabatta.git
11 lines
252 B
C
11 lines
252 B
C
|
|
||
|
static bool strpfx_i(char const *restrict str, char const *restrict prefix) {
|
||
|
while(*prefix != 0) {
|
||
|
if(*str == 0) break;
|
||
|
if(toupper(*str) != toupper(*prefix)) return false;
|
||
|
++prefix;
|
||
|
++str;
|
||
|
}
|
||
|
return true;
|
||
|
}
|