strcmpi is not an ANSI standard function. Neither is strupr. The only ANSI compatible way to do this is to convert one character at a time via toupper or tolower.

Quzah.