|
Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
#include <string.h>
Go to the source code of this file.
Functions | |
| char * | strstr (const char *string, const char *substring) |
| Finds the first occurrence of the substring in the string. More... | |
| char* strstr | ( | const char * | string, |
| const char * | substring | ||
| ) |
Finds the first occurrence of the substring in the string.
Finds the first occurrence of the null-terminated byte string pointed to by substring in the null-terminated byte string pointed to by string. The terminating null characters are not compared.
The behavior is undefined if either stirng or substring is not a pointer to a null-terminated byte string.
| string | pointer to the null-terminated byte string to examine |
| substring | pointer to the null-terminated byte string to search for |
Definition at line 38 of file strstr.c.
References NULL.