Write the following function in C.
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 Posted / amixcode
Hi "VadivelT" can u please why there is "-32" in the answer ??
i googled lot but didnt found the aswer.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is volatile c?
Explain what are multibyte characters?
What are identifiers in c?
What is extern c used for?
What happens if header file is included twice?
What is the difference between ++a and a++?
What is meant by keywords in c?
Can the curly brackets { } be used to enclose a single line of code?
Which is better between malloc and calloc?
What is the difference between c and python?
What is difference between main and void main?
what is the structure pointer?
Explain what is dynamic data structure?
How do we make a global variable accessible across files? Explain the extern keyword?
What is function and its example?