Standard C string library functions

Functions Description
strlen() Determines the length of a string
strcpy() Copies a string from the source to the destination.
strncpy() Copies characters of a string to another string up to the specified length
strcmp() Compares characters of two Strings (Function discriminates between small and capital letters)
stricmp() Compares two strings (Function does not discriminate between small and capital letters
strncmp() Compares characters of two strings up to the specified length
strnicmp() Compares characters of two strings up to the specified length, And ignores case
strlwr() Converts upper case characters of a string to lower case
strupr() Converts lower case characters of a string to upper case
strdup() Duplicates a string
strchr() Determines first occurrence of a given character in a string
strrchr() Determines last occurrence of a given character in a string
strstr() Determines first occurrence of a given string in another string
strcat() Appends source string to destination string
strncat() Appends source string to destination string up to specified length
strrev() Reversing all characters of a string
strset() Set all characters of string with a given argument or symbol
strnset() Set specified numbers of characters of string with a given argument or symbol
strspn() Finds up to what length two strings are identical
strpbrk() Searches the first occurrence of the character in a given string and then it displays the string starting from that character

Leave a comment

Your email address will not be published.