☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
string
/
wmemmove.c
☽
☼
libc-top-half/musl/src/string/wmemmove.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
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 (d == s) return d;
8
if ((uintptr_t)d-(uintptr_t)s < n * sizeof *d)
9
while (n--) d[n] = s[n];
10
else
11
while (n--) *d++ = *s++;
12
return d0;
13
}