source:
trunk/sys/dietlibc/wcsncat.c
@
428
Last change on this file since 428 was 1, checked in by , 8 years ago | |
---|---|
File size: 245 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <wchar.h> |
2 | ||
3 | wchar_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.