7.4.3
Character string functions
Character string functions are as follows.
Table 7.5 | Character String Functions |
|
|
strpbrk
|
Character string search (start position)
|
strrchr
|
Character string search (end position)
|
strchr
|
Character string search (start position of specified character)
|
strstr
|
Character string search (start position of specified character string)
|
strspn
|
Character string search (maximum length including specified character)
|
strcspn
|
Character string search (maximum length not including specified character)
|
strcmp
|
Character string comparison
|
strncmp
|
Character string comparison (with number of characters specified)
|
strcpy
|
Character string copy
|
strncpy
|
Character string copy (with number of characters specified)
|
strcat
|
Character string concatenation
|
strncat
|
Character string concatenation (with number of characters specified)
|
strtok
|
Token division
|
strlen
|
Length of character string
|
strerror
|
Character string conversion of error number
|