Predefined Functions
Function: strcpy(target_string, source_string)
Description: copies source_string into target_string
Warning: does not check to make sure that target_string
is large enough to hold source_string
Function: strcat(target_string, source_string)
Description: concatenates source_string onto the end of target_string
Warning: does not check to make sure that target_string
is large enough to hold the result of the concatenation
Function: strlen(source_string)
Description: returns an integer equal to the length of source_string
Warning: the ‘\0’ is not counted in the length
Function: strcmp(string_1, string_2)
Description: returns 0 if string_1 and string_2 are the same,
< 0 if string_1 is less than string_2,
and > 0 if string_1 is greater than string_2
Warning: 0 converts to false so use the !
Function: strtok(source_string, delimiters)
Description: on first call returns pointer to first token, on subsequent
calls, replace source_string by NULL, and it returns a pointer
to the next token, and the next , until source_string is
Warning: returns NULL when source_string contain no more tokens