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.
Answer / Sampurnanand Tripathi
This is a function in C that returns the numeric position of the first occurrence of the 'needle' string within the 'haystack' string, ignoring case sensitivity. If 'needle' is not found, it will return -1. Here's an example implementation:
```c
#include <stdio.h>
#include <string.h>
int stripos(char *haystack, char *needle) {
int len_needle = strlen(needle);
int i;
for (i = 0; haystack[i] != '