mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
196 B
11 lines
196 B
#include <wchar.h>
|
|
|
|
wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
|
|
{
|
|
wchar_t *d0 = d;
|
|
if ((size_t)(d-s) < n)
|
|
while (n--) d[n] = s[n];
|
|
else
|
|
while (n--) *d++ = *s++;
|
|
return d0;
|
|
}
|
|
|