str_stri ( STRING* content,STRING* search)

Returns the character number of the first case-insensitive occurrence of search in content. If no occurence is found, 0 is returned.

Parameters:

content - STRING* or char* to be searched.
search - STRING* or char* to search for.

Returns:

0 - search was not found in content
or position of the first occurrence of search in content, beginning with 1.

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 

► latest version online