String Manipulation
Prev | Chapter 3. Basic C Library Functions | Next

## String Manipulation

strnicmp — Case insensitive, length-limited string comparison
strcpy — Copy a `NUL` terminated string
strncpy — Copy a length-limited, `NUL-terminated` string
strlcpy — Copy a `NUL` terminated string into a sized buffer
strcat — Append one `NUL-terminated` string to another
strncat — Append a length-limited, `NUL-terminated` string to another
strlcat — Append a length-limited, `NUL-terminated` string to another
strcmp — Compare two strings
strncmp — Compare two length-limited strings
strchr — Find the first occurrence of a character in a string
strrchr — Find the last occurrence of a character in a string
strnchr — Find a character in a length limited string
strstrip — Removes leading and trailing whitespace from `s`.
strlen — Find the length of a string
strnlen — Find the length of a length-limited string
strspn — Calculate the length of the initial substring of `s` which only contain letters in `accept`
strcspn — Calculate the length of the initial substring of `s` which does not contain letters in `reject`
strpbrk — Find the first occurrence of a set of characters
strsep — Split a string into tokens
memset — Fill a region of memory with the given value
memcpy — Copy one area of memory to another
memmove — Copy one area of memory to another
memcmp — Compare two areas of memory
memscan — Find a character in an area of memory.
strstr — Find the first substring in a `NUL` terminated string
memchr — Find a character in an area of memory.

Prev | Up | Next
sscanf | Home | strnicmp