projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d58cebac989185687d9b0f6c2062279a162f425f
[musl]
/
src
/
string
/
wmemmove.c
1
#include <wchar.h>
2
#include <stdint.h>
3
4
wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
5
{
6
wchar_t *d0 = d;
7
if ((uintptr_t)d-(uintptr_t)s < n * sizeof *d)
8
while (n--) d[n] = s[n];
9
else
10
while (n--) *d++ = *s++;
11
return d0;
12
}