ciabatta/src/conv/strpfx.c

11 lines
252 B
C
Raw Normal View History

2022-08-05 09:00:58 +00:00
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;
}