source: trunk/sys/dietlibc/wcsncpy.c @ 127

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

First import

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