mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
92b3138b83
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
27 lines
540 B
C
27 lines
540 B
C
/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
|
/* This function is in the public domain. --Per Bothner. */
|
|
|
|
/*
|
|
|
|
@deftypefn Supplemental void* memmove (void *@var{from}, const void *@var{to}, @
|
|
size_t @var{count})
|
|
|
|
Copies @var{count} bytes from memory area @var{from} to memory area
|
|
@var{to}, returning a pointer to @var{to}.
|
|
|
|
@end deftypefn
|
|
|
|
*/
|
|
|
|
#include <ansidecl.h>
|
|
#include <stddef.h>
|
|
|
|
void bcopy (const void*, void*, size_t);
|
|
|
|
void *
|
|
memmove (void *s1, const void *s2, size_t n)
|
|
{
|
|
bcopy (s2, s1, n);
|
|
return s1;
|
|
}
|