summaryrefslogtreecommitdiff
path: root/libguile/memmove.c
blob: f5aab3ac6e57ba436e2c9208564e5bcc6e18417f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* 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 (s1, s2, n)
     PTR s1;
     CPTR s2;
     size_t n;
{
  bcopy (s2, s1, n);
  return s1;
}