strcat.c (186B)
1 #include <string.h> 2 3 #undef strcat 4 5 char * 6 strcat(char *restrict s1, const char *restrict s2) 7 { 8 char *ret = s1; 9 10 while (*s1) 11 ++s1; 12 13 while ((*s1++ = *s2++) != 0) 14 ; 15 16 return ret; 17 }
sccsimple c99 compiler | |
git clone git://git.simple-cc.org/scc | |
Log | Files | Refs | Submodules | README | LICENSE |