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 *
12wmemset(s, c, n)
13	register wchar_t	*s;
14	register wchar_t	c;
15	register size_t		n;
16{
17	wchar_t			*orig_s = s;
18
19	if ( s != NULL )
20		for ( ; n > 0; --n )
21			*s++ = c;
22
23	return orig_s;
24}
25#endif
26
27wchar_t *__cdecl wmemset(wchar_t *_S,wchar_t _C,size_t _N)
28{
29	wchar_t *_Su = _S;
30	for ( ; 0 < _N; ++_Su, --_N)
31		 *_Su = _C;
32	return (_S);
33}
34