String functions
String function
String functions are inbuilt predefined functions that are used for the on the strings for special comparisons and operations..
These are the following types and operation of the string functions
String functions
|
Operation performed by the the function
|
strcat (str1,str2 ) | Concatenates str2 at the end of str1 |
strcpy (str1,str2 ) | Copies str2 into str1 |
strlen (str1 ) | Gives the length of str1 |
strcmp ( str1,str2) | Returns 0 if str1 is same as str2. Returns <0 if strl < str2. Returns >0 if str1 > str2 |
strdup ( str1) | Duplicates the string |
strlwr (str1 ) | Converts string to lowercase |
strupr (str1 ) | Converts string to uppercase |
strrev (strr1 ) | Reverses the given string |
Login/Signup to comment