std::strstr
From cppreference.com
Defined in header <cstring>
|
||
const char* strstr( const char* dest, const char* src );
|
||
char* strstr( char* dest, const char* src );
|
||
Finds the first occurrence of the byte string src
in the byte string pointed to by dest
.
Contents |
[edit] Parameters
dest | - | pointer to the null-terminated byte string to examine |
src | - | pointer to the null-terminated byte string to search for |
[edit] Return value
Pointer to the first character of the found substring in dest
, or NULL if no such character is found. If src
points to an empty string, dest
is returned.
[edit] Example
This section is incomplete Reason: no example |
[edit] See also
find characters in the string (public member function of std::basic_string )
|
|
finds the first occurrence of a wide string within another wide string (function) |
|
finds the first occurrence of a character (function) |
|
finds the last occurrence of a character (function) |
|