1
0

wcsncat.c 170 B

12345678910
  1. #include <wchar.h>
  2. wchar_t *wcsncat(wchar_t *d, const wchar_t *s, size_t n)
  3. {
  4. wchar_t *a = d;
  5. d += wcslen(d);
  6. while (n && (*d++ = *s++)) n--;
  7. *d++ = 0;
  8. return a;
  9. }