summaryrefslogtreecommitdiff
path: root/src/string/wmemmove.c
blob: 49608caed57ed6de8a552ce34d9bbd73ff186ac1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <string.h>
#include <wchar.h>

wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
{
	if ((size_t)(d-s) < n) {
		while (n--) d[n] = s[n];
		return d;
	}
	return wmemcpy(d, s, n);
}