welibc
A clear, secure, and well documented standard C library
|
Defines the strstr function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
char * | strstr (const char *s1, const char *s2) |
Locate the first occurrence of a string in a another string. More... | |
Defines the strstr function.
Definition in file strstr.c.
char* strstr | ( | const char * | s1, |
const char * | s2 | ||
) |
Locate the first occurrence of a string in a another string.
*s1 | String being searched |
*s2 | String being found |
The strstr function locates the first occurrence in the string pointed to by s1 of the sequence of characters (excluding the terminating null character) in the string pointed to by s2.
NULL | The sequence in s2 was not found in s1 |
Definition at line 53 of file strstr.c.
References NULL, strchr(), strlen(), and strncmp().