std::strpbrk
From Cppreference
C++ Standard Library | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Strings library | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
Null-terminated byte strings | |||||||||||||||||||||||||||||||||||||
Defined in header <cstring>
|
||
const char* strpbrk( const char* dest, const char* str );
|
||
char* strpbrk( char* dest, const char* str );
|
||
Finds the first character in byte string pointed to by dest, that is also in byte string pointed to by str.
Contents |
[edit] Parameters
dest | - | pointer to the null-terminated byte string to be analyzed |
src | - | pointer to the null-terminated byte string that contains the characters to search for |
[edit] Return value
pointer to the first character in dest, that is also in str, or NULL if no such character exists.
[edit] Example
This section is incomplete |
[edit] See also
returns the length of the maximum initial segment that consists of only the characters not found in another byte string (function) |
|
finds the first occurrence of a character (function) |