Char String Handling Functions

C language supports a large number of string handling functions that can be used to carry out many of the string manipulations. These functions are packaged in the string.h library. Hence, you must include string.h header file in your programs to use these functions.

The following are the most commonly used string handling functions.

Method Description
strcat() It is used to concatenate(combine) two strings
strlen() It is used to show the length of a string
strcpy() Copies one string into another
strcmp() It is used to compare two string

Figure: String functions
Image strfun