I got benifited a lot from this forum.Can you please have a look at my requirement and assist me in the same.

stripos Find position of first occurrence of a case-insensitive string
int stripos ( char* haystack, char* needle, int offset )

Returns the numeric position of the first occurrence of needle in the
haystack string. Note that the needle may be a string of one or more
characters. If needle is not found, stripos() will return -1.

The function should not make use of any C library function calls.

Thanks in Advance