178c87a5cStholo /* memmove -- copy memory regions of arbitary length
278c87a5cStholo Copyright (C) 1991 Free Software Foundation, Inc.
378c87a5cStholo
478c87a5cStholo This file is part of the libiberty library.
578c87a5cStholo Libiberty is free software; you can redistribute it and/or
678c87a5cStholo modify it under the terms of the GNU Library General Public
778c87a5cStholo License as published by the Free Software Foundation; either
878c87a5cStholo version 2 of the License, or (at your option) any later version.
978c87a5cStholo
1078c87a5cStholo Libiberty is distributed in the hope that it will be useful,
1178c87a5cStholo but WITHOUT ANY WARRANTY; without even the implied warranty of
1278c87a5cStholo MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1378c87a5cStholo Library General Public License for more details.
1478c87a5cStholo
15*9fe7c2c3Stholo */
1678c87a5cStholo
1778c87a5cStholo
1878c87a5cStholo /*
1978c87a5cStholo
2078c87a5cStholo NAME
2178c87a5cStholo
2278c87a5cStholo memmove -- copy memory regions of arbitary length
2378c87a5cStholo
2478c87a5cStholo SYNOPSIS
2578c87a5cStholo
2678c87a5cStholo void memmove (void *out, const void *in, size_t n);
2778c87a5cStholo
2878c87a5cStholo DESCRIPTION
2978c87a5cStholo
3078c87a5cStholo Copy LENGTH bytes from memory region pointed to by IN to memory
3178c87a5cStholo region pointed to by OUT.
3278c87a5cStholo
3378c87a5cStholo Regions can be overlapping.
3478c87a5cStholo */
3578c87a5cStholo
3678c87a5cStholo #ifdef HAVE_CONFIG_H
3778c87a5cStholo #include "config.h"
3878c87a5cStholo #endif
3978c87a5cStholo
4078c87a5cStholo #ifdef __STDC__
4178c87a5cStholo #include <stddef.h>
4278c87a5cStholo #else
4378c87a5cStholo #define size_t unsigned long
4478c87a5cStholo #endif
4578c87a5cStholo
4678c87a5cStholo void *
memmove(out,in,length)4778c87a5cStholo memmove (out, in, length)
4878c87a5cStholo void *out;
4978c87a5cStholo const void* in;
5078c87a5cStholo size_t length;
5178c87a5cStholo {
5278c87a5cStholo bcopy(in, out, length);
5378c87a5cStholo return out;
5478c87a5cStholo }
55