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

The function copies the string s2, including its terminating null character, to successive
elements of the array of char whose first element has the address s1. It returns s1.
strcspn
size_t strcspn(const char *s1, const char *s2);
The function searches for the first element s1[i] in the string s1 that equals any one of the
elements of the string s2 and returns i. Each terminating null character is considered part of its
string.
strerror
char *strerror(int errcode);
The function returns a pointer to an internal static-duration object containing the message string
corresponding to the error code errcode. The program must not alter any of the values stored
in this object. A later call to strerror can alter the value stored in this object.
strlen
size_t strlen(const char *s);
The function returns the number of characters in the string s, not including its terminating null
character.
strncat
char *strncat(char *s1, const char *s2, size_t n);
The function copies the string s2, not 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. The function copies no more than n characters from s2. It
then stores a null character, in the next element to be altered in s1, and returns s1.
strncmp
int strncmp(const char *s1, const char *s2, size_t n);
The function compares successive elements from two strings, s1 and s2, until it finds elements
that are not equal or until it has compared the first n elements of the two strings.
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