summaryrefslogtreecommitdiff
path: root/src/wchar/wmemmove.c
blob: 11fd35dc833dcdc39a21d1d779e2783a34229db9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <wchar.h>
#include "stdlib.h"

wchar_t * wmemmove(wchar_t * s1, const wchar_t * s2, size_t n)
{
	wchar_t *tmp = malloc(n * sizeof(wchar_t));
	wmemcpy(tmp, s2, n);
	wmemcpy(s1, tmp, n);
	free(tmp);
	return s1;
}

/*
STDC(199409)
*/