str_cmpi (String1, String2)

Compares both strings without case sensitivity, and returns a value of 1 if they are equal, and 0 otherwise. Example:

Parameters:

string1 - character string
string2 - character string to compare

Returns:

var = 1 - String1 == String2
var = 0 - String1 != String2

Speed:

Fast

Example

STRING* s1 = "Hello World";
STRING* s2 = "Hello Universe";

str_cmpi(s1,"hello world"); // returns 1 str_cmpi(s2,"hello world"); // returns 0

See also:

str_cpy, str_cat, str_cmp, str_cmpni, str_len, str_clip, str_trunc, str_stri