Page 1029 DESCRIPTION The strcat() function appends the src string to the dest string, overwriting the \0 character at the end of dest, and then adds a terminating \0 character. The strings may not overlap, and the dest string must have enough space for the result. The strncat() function is similar, except that only the first n characters of src are appended to dest. RETURN VALUE The strcat() and strncat() functions return a pointer to the resulting string dest. CONFORMS TO SVID 3, POSIX, BSD 4.3, ISO 9899 SEE ALSO bcopy(3), memccpy(3), memcpy(3), strcpy(3), strncpy(3) GNU, 11 April 1993 strchr, strrchrstrchr, strrchrLocate character in string SYNOPSIS #include <string.h> char *strchr(const char *s,int c); char *strrchr(const char *s,int c); DESCRIPTION The strchr() function returns a pointer to the first occurrence of the character c in the string s. The strrchr() function returns a pointer to the last occurrence of the character c in the string s. RETURN VALUE The strchr() and strrchr() functions return a pointer to the matched character or NULL if the character is not found. CONFORMS TO SVID 3, POSIX, BSD 4.3, ISO 9899 SEE ALSO index(3), memchr(3), rindex(3), strpbrk(3), strsep(3), strspn(3), strstr(3), strtok(3) 12 April 1993 strcmp, strncmpstrcmp, strncmpCompare two strings SYNOPSIS #include <string.h> int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t n); |