Null-terminated string: Difference between revisions

Content deleted Content added
Ktracy (talk | contribs)
mNo edit summary
Ktracy (talk | contribs)
mNo edit summary
Line 25:
 
Copying:
 
memcpy Copies block of memory
 
memmove Move block of memory
 
strcpy Copy string
 
strncpy Copy characters from string
 
 
Concatenation:
 
strcat Concatenate strings
 
strncat Append characters from string
 
 
Comparison:
 
memcmp Compare two blocks of memory
 
strcmp Compare two strings
 
strcoll Compare two strings using locale
 
strncmp Compare characters of two strings
 
strxfrm Transform string using locale
 
 
Searching:
 
memchr Locate character in block of memory
 
strchr Locate first occurrence of character in string
 
strcspn Get span until character in string
 
strpbrk Locate character in string
 
strrchr Locate last occurrence of character in string
 
strspn Get span of character set in string
 
strstr Locate substring
 
strtok Split string into tokens
 
 
Other:
 
memset Fill block of memory
 
strerror Get pointer to error message string
 
strlen Get string length