Standard C++ Library Reference ISO/IEC (VERSION3)

const void *memchr(const void *s, int c,
size_t n); [C++ only]
void *memchr(void *s, int c, size_t n); [C++ only]
char *strchr(const char *s, int c); [not in C++]
const char *strchr(const char *s, int c); [C++ only]
char *strchr(char *s, int c); [C++ only]
char *strpbrk(const char *s1,
const char *s2); [not in C++]
const char *strpbrk(const char *s1,
const char *s2); [C++ only]
char *strpbrk(char *s1, const char *s2); [C++ only]
char *strrchr(const char *s, int c); [not in C++]
const char *strrchr(const char *s, int c); [C++ only]
char *strrchr(char *s, int c); [C++ only]
char *strstr(const char *s1,
const char *s2); [not in C++]
const char *strstr(const char *s1,
const char *s2); [C++ only]
char *strstr(char *s1, const char *s2); [C++ only]
memchr
void *memchr(const void *s, int c,
size_t n); [not in C++]
const void *memchr(const void *s, int c,
size_t n); [C++ only]
void *memchr(void *s, int c, size_t n); [C++ only]
The function searches for the first element of an array of unsigned char, beginning at the
address s with size n, that equals (unsigned char)c. If successful, it returns the address
of the matching element; otherwise, it returns a null pointer.
memcmp
int memcmp(const void *s1, const void *s2, size_t n);
The function compares successive elements from two arrays of unsigned char, beginning at the
addresses s1 and s2 (both of size n), until it finds elements that are not equal: