1254721Semaste/*-
2254721Semaste * Copyright (c)1999 Citrus Project,
3254721Semaste * All rights reserved.
4254721Semaste *
5254721Semaste * Redistribution and use in source and binary forms, with or without
6254721Semaste * modification, are permitted provided that the following conditions
7254721Semaste * are met:
8254721Semaste * 1. Redistributions of source code must retain the above copyright
9254721Semaste *    notice, this list of conditions and the following disclaimer.
10254721Semaste * 2. Redistributions in binary form must reproduce the above copyright
11254721Semaste *    notice, this list of conditions and the following disclaimer in the
12254721Semaste *    documentation and/or other materials provided with the distribution.
13254721Semaste *
14254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15254721Semaste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17254721Semaste * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18254721Semaste * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19254721Semaste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20254721Semaste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21254721Semaste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22254721Semaste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23254721Semaste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24254721Semaste * SUCH DAMAGE.
25254721Semaste *
26254721Semaste *	citrus Id: wmemcpy.c,v 1.2 2000/12/20 14:08:31 itojun Exp
27254721Semaste */
28254721Semaste
29254721Semaste#include <sys/cdefs.h>
30254721Semaste#if 0
31254721Semaste#if defined(LIBC_SCCS) && !defined(lint)
32254721Semaste__RCSID("$NetBSD: wmemcpy.c,v 1.1 2000/12/23 23:14:37 itojun Exp $");
33254721Semaste#endif /* LIBC_SCCS and not lint */
34254721Semaste#endif
35254721Semaste__FBSDID("$FreeBSD$");
36254721Semaste
37254721Semaste#include <string.h>
38254721Semaste#include <wchar.h>
39254721Semaste
40254721Semastewchar_t *
41254721Semastewmemcpy(wchar_t * __restrict d, const wchar_t * __restrict s, size_t n)
42254721Semaste{
43254721Semaste	return (wchar_t *)memcpy(d, s, n * sizeof(wchar_t));
44254721Semaste}
45254721Semaste