str_stri (String1, String2)

Returns the character number (beginning with 1) of the first case-insensitive occurrence of string2 in string1. If no occurence is found, 0 is returned.

Parameters:

string1 - character string in which sould be searched
string2 - character string which is searched in string1

Returns:

0 - string2 is not occurred in string1
or position of the first occurrence of string2 in string1

Speed:

Fast

Example:

STRING* s1 = "Hello World";
...
temp = str_stri(s1,"world"); // now temp == 7

See also:

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