Standard C++ Library Reference ISO/IEC (VERSION3)
strcat
char *strcat(char *s1, const char *s2);
The function copies the string s2, including its terminating null character, to successive
elements of the array of char that stores the string s1, beginning with the element that stores
the terminating null character of s1. It returns s1.
strchr
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]
The function searches for the first element of the string s that equals (char)c. It considers the
terminating null character as part of the string. If successful, the function returns the address of
the matching element; otherwise, it returns a null pointer.
strcmp
int strcmp(const char *s1, const char *s2);
The function compares successive elements from two strings, s1 and s2, until it finds elements
that are not equal.
If all elements are equal, the function returns zero.●
If the differing element from s1 is greater than the element from s2 (both taken as
unsigned char), the function returns a positive number.
●
Otherwise, the function returns a negative number.●
strcoll
int strcoll(const char *s1, const char *s2);
The function compares two strings, s1 and s2, using a comparison rule that depends on the
current locale. If s1 compares greater than s2 by this rule, the function returns a positive
number. If the two strings compare equal, it returns zero. Otherwise, it returns a negative
number.
strcpy
char *strcpy(char *s1, const char *s2);