String handling functions/ string library functions
Functions that are used to perform operations on strings are known as string handling functions.These functions are included in the string.h header file.
Some commonly used string functions are:
- strlen() – To find length of the given string
- strcmp() – To compare given 2 strings
- strcpy() – To copy one string to another
- strcat() – To append/ add second string at the end of first string.h
- strrev() – To reverse the given string
- strupr() – To convert given lower case string into uppercase
- strlwr() – To convert given lower case string into uppercase
- strlen() – This function returns length of the string,which excludes a Null character