string.h
title: "courses/c-course - string.h.md"
- **fileName**: string.h
- **Created on**: 2024-06-06 14:52:15
string.h is header file have some function for handle string for example :
Function Name | Function Description |
---|---|
strlen() | Returns the length of the string. |
strcpy() | Copy one string to another. |
strncpy() | Copy first n characters of one string to another. |
strcat() | Concatenates two strings. |
strncat() | Concatenates first n characters of one string to another. |
strcmp() | Compares two strings. |
strncmp() | Compares first n characters of two strings. |
strchr() | Find the first occurrence of the given character in the string. |
strrchr() | Finds the last occurrence of the given characters in the string. |
strstr() | Find the given substring in the string. |
strcspn() | Returns the span of the source string not containing any character of the given string. |
strspn() | Returns the span of the source string containing only the characters of the given string. |
strpbrk() | Finds the first occurrence of any of the characters of the given string in the source string. |
strtok() | Split the given string into tokens based on some character as a delimiter. |
strcoll() | Compares two strings that are passed. |
memset() | Initialize a block of memory with the given character. |
memcmp() | Compares two blocks of memory. |
memcpy() | Copy two blocks of memory. |
memmove() | Moves two blocks of memory. |
memchr() | Finds the given character in the block of memory. |
continue:function-statement.md
before:if-switch.md