Next: Wchar strings, Previous: Stdio, Up: Top [Contents][Index]

## 5 Strings and Memory (`string.h`)

This chapter describes string-handling functions and functions for managing areas of memory. The corresponding declarations are in `string.h`.

• bcmp: |  | Compare two memory areas
• bcopy: |  | Copy memory regions
• bzero: |  | Initialize memory to zero
• index: |  | Search for character in string
• memccpy: |  | Copy memory regions up to end-token
• memchr: |  | Find character in memory
• memcmp: |  | Compare two memory areas
• memcpy: |  | Copy memory regions
• memmem: |  | Find memory segment
• memmove: |  | Move possibly overlapping memory
• mempcpy: |  | Copy memory regions and locate end
• memrchr: |  | Reverse search for character in memory
• memset: |  | Set an area of memory
• rawmemchr: |  | Find character in memory
• rindex: |  | Reverse search for character in string
• stpcpy: |  | Copy string returning a pointer to its end
• stpncpy: |  | Counted copy string returning a pointer to its end
• strcasecmp: |  | Compare strings ignoring case
• strcasestr: |  | Find string segment ignoring case
• strcat: |  | Concatenate strings
• strchr: |  | Search for character in string
• strchrnul: |  | Search for character in string
• strcmp: |  | Character string compare
• strcoll: |  | Locale-specific character string compare
• strcpy: |  | Copy string
• strcspn: |  | Count chars not in string
• strerror: |  | Convert error number to string
• strerror_r: |  | Convert error number to string
• strlen: |  | Character string length
• strlwr: |  | Convert string to lowercase
• strncasecmp: |  | Compare strings ignoring case
• strncat: |  | Concatenate strings
• strncmp: |  | Character string compare
• strncpy: |  | Counted copy string
• strnlen: |  | Character string length
• strpbrk: |  | Find chars in string
• strrchr: |  | Reverse search for character in string
• strsignal: |  | Return signal message string
• strspn: |  | Find initial match
• strstr: |  | Find string segment
• strtok: |  | Get next token from a string
• strupr: |  | Convert string to upper case
• strxfrm: |  | Transform string
• swab: |  | Swap adjacent bytes
• wcscasecmp: |  | Compare wide character strings ignoring case
• wcsdup: |  | Wide character string duplicate
• wcsncasecmp: |  | Compare wide character strings ignoring case

Next: Wchar strings, Previous: Stdio, Up: Top [Contents][Index]