source: trunk/sys/dietlibc/wcsncat.c @ 95

Last change on this file since 95 was 1, checked in by alain, 8 years ago

First import

File size: 245 bytes
Line 
1#include <wchar.h>
2
3wchar_t* wcsncat(wchar_t *__restrict__ dest, const wchar_t *__restrict__ src,size_t n) {
4  wchar_t* orig=dest;
5  size_t i;
6  while (*dest) ++dest;
7  for (i=0; i<n && src[i]; ++i) dest[i]=src[i];
8  dest[i]=0;
9  return orig;
10}
Note: See TracBrowser for help on using the repository browser.