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 are data structures in c and how to use them?
What is an example of structure?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
Explain continue keyword in c
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Does c have function or method?
What is the -> in c?
Explain the process of converting a Tree into a Binary Tree.
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Explain how can I write functions that take a variable number of arguments?
What is c method?
What tq means in chat?
Explain how do you determine the length of a string value that was stored in a variable?
What are the key features in c programming language?
What is typeof in c?