Function stdio_strstr
Defined in File string.h
Function Documentation
-
const char *stdio_strstr(const char *haystack, const char *needle)
Search a string for another string.
This routine searches the haystack for the first occurence of the needle. All bytes of needle must be found contiguously, including the null byte; that is, the needle string MUST be null terminated. If it is not null terminated then this routine will not be able to figure out where the needle string ends. If more than one occurence of needle is found in haystack, the pointer to the first one encountered will be returned.
- Parameters:
haystack – The string to search IN.
needle – The string to search for.
- Returns:
: The first occurence of the needle, or NULL if the substring was not found.