scc

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

wcscat.c (193B)


      1 #include <wchar.h>
      2 
      3 #undef wcscat
      4 
      5 wchar_t *
      6 wcscat(wchar_t *restrict s1, const wchar_t *restrict s2)
      7 {
      8 	wchar_t *p;
      9 
     10 	for (p = s1; *p; ++p)
     11 		;
     12 	while ((*p++ = *s2++) != 0)
     13 		;
     14 
     15 	return s1;
     16 }