source:
azure_iot_hub/trunk/musl-1.1.18/src/string/wmemmove.c@
400
Last change on this file since 400 was 389, checked in by , 5 years ago | |
---|---|
|
|
File size: 196 bytes |
Rev | Line | |
---|---|---|
[388] | 1 | #include <wchar.h> |
2 | ||
3 | wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n) | |
4 | { | |
5 | wchar_t *d0 = d; | |
6 | if ((size_t)(d-s) < n) | |
7 | while (n--) d[n] = s[n]; | |
8 | else | |
9 | while (n--) *d++ = *s++; | |
10 | return d0; | |
11 | } |
Note:
See TracBrowser
for help on using the repository browser.