File: memmove.c

package info (click to toggle)
guile-1.6 1.6.8-10.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 18,876 kB
  • sloc: ansic: 69,526; lisp: 14,845; sh: 11,597; asm: 1,514; makefile: 879; awk: 199; csh: 50
file content (28 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* 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:
*/