mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
28 lines
446 B
C
28 lines
446 B
C
/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
|
|
/* This function is in the public domain. --Per Bothner. */
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#ifdef __STDC__
|
|
#define PTR void *
|
|
#define CPTR const void *
|
|
PTR memmove (PTR, CPTR, size_t);
|
|
#else
|
|
#define PTR char *
|
|
#define CPTR char *
|
|
PTR memmove ();
|
|
#endif
|
|
|
|
PTR
|
|
memmove (PTR s1, CPTR s2, size_t n)
|
|
{
|
|
bcopy (s2, s1, n);
|
|
return s1;
|
|
}
|
|
|
|
/*
|
|
Local Variables:
|
|
c-file-style: "gnu"
|
|
End:
|
|
*/
|