projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
math.h: make __FLOAT_BITS and __DOUBLE_BITS C89
[musl]
/
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
}