From 28e9041cc224267271fbcd8db22bea115912365b Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 21 Aug 1997 22:57:35 +0000 Subject: Initial revision git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/memmove.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libiberty/memmove.c (limited to 'libiberty/memmove.c') diff --git a/libiberty/memmove.c b/libiberty/memmove.c new file mode 100644 index 00000000000..818fc249662 --- /dev/null +++ b/libiberty/memmove.c @@ -0,0 +1,18 @@ +/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */ +/* This function is in the public domain. --Per Bothner. */ +#include +#ifdef __STDC__ +#include +#else +#define size_t unsigned long +#endif + +PTR +memmove (s1, s2, n) + PTR s1; + CONST PTR s2; + size_t n; +{ + bcopy (s2, s1, n); + return s1; +} -- cgit v1.2.1