Useful string function : String Introduction « String « C Tutorial






FunctionDescription
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










3.1.String Introduction
3.1.1.Strings
3.1.2.A string is an array of characters.
3.1.3.Write string in a more traditional array style
3.1.4.Strings always end with the NULL character
3.1.5.String constants consist of text enclosed in double quotes
3.1.6.Useful string function