projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
arm assembly changes for clang compatibility
[oweals/musl.git]
/
src
/
string
/
wmemmove.c
1
#include <wchar.h>
2
3
wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
4
{
5
wchar_t *d0 = d;
6
if ((size_t)(d-s) < n)
7
while (n--) d[n] = s[n];
8
else
9
while (n--) *d++ = *s++;
10
return d0;
11
}