cls_multi_schar.c (main): Fix initialization error.
[official-gcc.git] / libiberty / memcpy.c
blob5eece7a0a0015c2535d50c58e03a33e16129519c
1 /* memcpy (the standard C function)
2 This function is in the public domain. */
4 /*
6 @deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, size_t @var{length})
8 Copies @var{length} bytes from memory region @var{in} to region
9 @var{out}. Returns a pointer to @var{out}.
11 @end deftypefn
15 #include <ansidecl.h>
16 #ifdef ANSI_PROTOTYPES
17 #include <stddef.h>
18 #else
19 #define size_t unsigned long
20 #endif
22 void bcopy PARAMS((const void*, void*, size_t));
24 PTR
25 memcpy (out, in, length)
26 PTR out;
27 const PTR in;
28 size_t length;
30 bcopy(in, out, length);
31 return out;