scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

strcat.c (185B)


      1 #include <string.h>
      2 #undef strcat
      3 
      4 char *
      5 strcat(char * restrict dst, const char * restrict src)
      6 {
      7 	char *ret = dst;
      8 
      9 	while (*dst)
     10 		++dst;
     11 	while (*dst++ = *src++)
     12 		;
     13 	return ret;
     14 }