Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
string
/
wmemmove.c
blob: e406f3d5c8dfc2af79b992c9f1fa6cfc80c12ec6 [
file
] [
log
] [
blame
]
#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
;
}