C header file: <string.h> - string operations
A header file is a file containing C declarations and macro definitions to be shared between several source files. You request the use of a header file in your program by including it, with the C preprocessing directive ‘#include’.
The <string.h> include file declares the string manipulation functions:
A complete table of string Lybrary:
| Name | Description |
|---|---|
| memchr() function | find byte in memory. |
| memcmp() function | compare bytes in memory. |
| memcpy() function | copy bytes in memory. |
| memmove() function | copy bytes in memory with overlapping areas. |
| memset() function | set bytes in memory. |
| strcat() function | concatenate two strings. |
| strncat() function | concatenate a string with part of another. |
| strchr() function | string scanning operation. |
| strcmp() function | compare two strings. |
| strncmp() function | compare part of two strings. |
| strcoll() function | string comparison using collating information. |
| strcpy() function | copy a string and return a pointer to the end of the result. |
| strncpy()function | copy fixed length string, returning a pointer to the array end. |
| strcspn()function | get the length of a complementary substring. |
| strerror()function | get error message string. |
| strlen()function | get length of fixed size string. |
| strpbrk()function | scan a string for a byte. |
| strrchr()function | string scanning operation. |
| strspn()function | get length of a substring. |
| strstr()function | find a substring. |
| strtok()function | split string into tokens. |
| strxfrm()function | string transformation. |
Next C Programming: C memchr()
