memmove.c revision 189170
150472Speter/*- 237Srgrimes * Copyright (c) 2009 Roman Divacky <rdivacky@FreeBSD.org> 337Srgrimes * All rights reserved. 487683Srwatson * 587683Srwatson * Redistribution and use in source and binary forms, with or without 687683Srwatson * modification, are permitted provided that the following conditions 787683Srwatson * are met: 887683Srwatson * 1. Redistributions of source code must retain the above copyright 9748Swollman * notice, this list of conditions and the following disclaimer. 1065532Snectar * 2. Redistributions in binary form must reproduce the above copyright 1137Srgrimes * notice, this list of conditions and the following disclaimer in the 1237Srgrimes * documentation and/or other materials provided with the distribution. 1384133Sru * 1484133Sru * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1537Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1637Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 171676Sphk * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 181676Sphk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19748Swollman * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2014726Sadam * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 211774Swollman * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 221676Sphk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 237708Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 247708Srgrimes * SUCH DAMAGE. 257708Srgrimes*/ 261676Sphk 271774Swollman#include <sys/cdefs.h> 2887683Srwatson__FBSDID("$FreeBSD: head/sys/libkern/memmove.c 189170 2009-02-28 16:21:25Z ed $"); 2987683Srwatson 30748Swollman#include <sys/libkern.h> 31 32void * 33memmove(void *dest, const void *src, size_t n) 34{ 35 36 bcopy(src, dest, n); 37 return (dest); 38} 39