Null-terminated string: Difference between revisions

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