String programming in c

For string, the header file string.h is used i.e. #include .It contains many functions such as -

1. strlen - Used for finding the length of string.

For eg, len=strlen(str); where str is pointer to char

2.strcpy - Used for copying string.

For eg,strcpy(str1,str2); where str1 and str2 are pointers to char.The resultant string is saved in str1.

3.strcat - Used for concatenating two strings

For eg,strcat(str1,str2); where str1 and str2 are pointers to char.The resultant string is saved in str1.