Skip to main content

Posts

Showing posts with the label strlen()

String Handling Functions in C programming

 The library or built-in functions strlen(), strcpy(), strcat(), strcmp(), strrev() etc are used for string manipulation in C. These functions are defined in header file string.h. They are described in detail as follow.               i.       strlen()          This function returns the length of string. Its prototypes is as int strlen(string s1); example :                         #include<string.h>                         void main()                           {                          char line[]="baba";           ...