master
 1/**
 2 * This file has no copyright assigned and is placed in the Public Domain.
 3 * This file is part of the mingw-w64 runtime package.
 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 5 */
 6
 7#define __CRT__NO_INLINE
 8#include	<wchar.h>
 9
10#if 0
11wchar_t *
12wmemcpy(s1, s2, n)
13	register wchar_t * __restrict__		s1;
14	register const wchar_t * __restrict__	s2;
15	register size_t					n;
16{
17	wchar_t						*orig_s1 = s1;
18
19	if ( s1 == NULL || s2 == NULL || n == 0 )
20		return orig_s1;		/* robust */
21
22	for ( ; n > 0; --n )
23		*s1++ = *s2++;
24
25	return orig_s1;
26}
27#endif
28
29wchar_t *__cdecl wmemcpy(wchar_t *_S1,const wchar_t *_S2,size_t _N)
30{
31	return (wchar_t *)memcpy(_S1,_S2,_N*sizeof(wchar_t));
32}
33