mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 22:22:01 +00:00
12 lines
196 B
C
12 lines
196 B
C
![]() |
#include <string.h>
|
||
|
#include <wchar.h>
|
||
|
|
||
|
wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
|
||
|
{
|
||
|
if ((size_t)(d-s) < n) {
|
||
|
while (n--) d[n] = s[n];
|
||
|
return d;
|
||
|
}
|
||
|
return wmemcpy(d, s, n);
|
||
|
}
|