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


Please Help Members By Posting Answers For Below Questions

What are lookup tables in c?

550


How can you find out how much memory is available?

618


What is console in c language?

609


How are portions of a program disabled in demo versions?

751


Why double pointer is used in c?

567






Tell me about low level programming languages.

644


What does nil mean in c?

672


What is the difference between arrays and pointers?

636


Explain the difference between null pointer and void pointer.

673


Which type of language is c?

653


What is volatile, register definition in C

691


Difference between MAC vs. IP Addressing

641


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

2578


all c language question

1875


Can a void pointer point to a function?

573