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