Add strcat function

llvm-svn: 1847
This commit is contained in:
Chris Lattner 2002-03-11 17:46:50 +00:00
parent 2a00ac1e7e
commit 10b85921ef
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ char *strcpy(char *s1, const char *s2) {
return s1;
}
char *strcat(char *s1, const char *s2) {
strcpy(s1+strlen(s1), s2);
return s1;
}
/* Compare S1 and S2, returning less than, equal to or
greater than zero if S1 is lexicographically less than,