mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-28 03:04:44 +08:00
11a0bb74cd
* choose-temp.c: Don't check IN_GCC anymore. * floatformat.c (floatformat_from_double): Use `const', not `CONST'. * memchr.c (memchr): Likewise. * memcpy.c (memcpy): Likewise. * memmove.c (memmove): Likewise. * mkstemp.c: Don't check IN_GCC anymore. * pexecute.c: Likewise. * splay-tree.c: Likewise. * strchr.c (strchr): Use `const', not `CONST'. * strrchr.c (strrchr): Likewise. * strtol.c (strtol): Likewise. * strtoul.c (strtoul): Likewise. From-SVN: r24307
19 lines
334 B
C
19 lines
334 B
C
/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
|
/* This function is in the public domain. --Per Bothner. */
|
|
#include <ansidecl.h>
|
|
#ifdef __STDC__
|
|
#include <stddef.h>
|
|
#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;
|
|
}
|