Mega Code Archive

 
Categories / C Tutorial / String
 

Useful string function

Function Description strcpy(string1, string2)Copy string2 into string1 strcat(string1, string2)Concatenate string2 onto the end of string1 length = strlen(string)Get the length of a string strcmp(string1, string2)0 if string1 equals string2, otherwise nonzero