Assume for the following that str1 and str2 are C-style strings (pointers to char arrays), ch is a char, and n in an int:
- strlen(str1) returns the length of str1
- strcpy(str1, str2) copies str2 to str1 [dangerous due to possible overflow]
- strncpy(str1, str2, n) copies the first n characters from str2 to str1 and pads str1 with 0s if str2 is shorter than n characters [less dangerous than strcpy, but no terminating null is added to str1 if str2 if n or more characters long]
- strcat(str1, str2) concatenates str2 to the end of str1 [dangerous due to possible overflow]
- strncat(str1, str2, n) concatenates the first n characters of str2 to the end of str1 [dangerous due to possible overflow]
- strcmp(str1, str2) returns an int less than 0 if str1 is less than str2, greater than 0 if str1 is greater than str2, or 0 if str1 equals str2
- strncmp(str1, str2, n) does the same as strcmp, but only compares up to a maximum of n characters
- strchr(str1, ch) returns a pointer to the first occurrence of ch in str1, or a null pointer if it is not found
- strpbrk(str1, str2) returns a pointer to the first occurrence of any character in str2 within str1, or a null pointer if none is found
- strstr(str1, str2) returns a pointer to the first occurrence of str2 in str1, or a null pointer if it is not found
- strspn(str1, str2) returns the length of characters at the start of str1 which consist of only characters continaed in str2
- strtok(str1, str2) is used to tokenize str1 based on the delimiter list in str2 - see documentation for details of use