scc

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

strcpy.c (162B)


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