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