scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

strcat.c (198B)


      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 		/* nothing */;
     13 	return ret;
     14 }