string.h library is used to modify any string.for example we want to reverse the string or convert string into upper letters.etc...
to use this functions we have to add "#include<string.h>" at top of the program.Following are the functions included in string.h library just click on function name to view more details and examples:
strcat(string1,string2)-Concentrates sring2 at the end of string1.
strcpy(string1,string2)-copies string2 into string1.
strcmp(string1,string2)-Compares string1 and string2.
strcmpi(string1,string2)-same as strcmp but it neglects case.
strlen(string)-gives the length of string.
strchr(string,char)-returns the pointer of first occurrence of character.
strstr(string1,string2)-returns the pointer of first occurence of string2 in string1.
strlwr(string)-converts the string into lower case.
strupr(string)-converts the string into upper case.
strdup(string)-duplicates the string.
strrev(string)-reverse the given string.
strset(string,char)-sets whole string to given character.
to use this functions we have to add "#include<string.h>" at top of the program.Following are the functions included in string.h library just click on function name to view more details and examples:
strcat(string1,string2)-Concentrates sring2 at the end of string1.
strcpy(string1,string2)-copies string2 into string1.
strcmp(string1,string2)-Compares string1 and string2.
strcmpi(string1,string2)-same as strcmp but it neglects case.
strlen(string)-gives the length of string.
strchr(string,char)-returns the pointer of first occurrence of character.
strstr(string1,string2)-returns the pointer of first occurence of string2 in string1.
strlwr(string)-converts the string into lower case.
strupr(string)-converts the string into upper case.
strdup(string)-duplicates the string.
strrev(string)-reverse the given string.
strset(string,char)-sets whole string to given character.