13 |
*/ |
*/ |
14 |
|
|
15 |
#include <ansidecl.h> |
#include <ansidecl.h> |
16 |
#ifdef __STDC__ |
#ifdef ANSI_PROTOTYPES |
17 |
#include <stddef.h> |
#include <stddef.h> |
18 |
#else |
#else |
19 |
#define size_t unsigned long |
#define size_t unsigned long |
20 |
#endif |
#endif |
21 |
|
|
22 |
|
void bcopy PARAMS((const void*, void*, size_t)); |
23 |
|
|
24 |
PTR |
PTR |
25 |
DEFUN(memcpy, (out, in, length), PTR out AND const PTR in AND size_t length) |
memcpy (out, in, length) |
26 |
|
PTR out; |
27 |
|
const PTR in; |
28 |
|
size_t length; |
29 |
{ |
{ |
30 |
bcopy(in, out, length); |
bcopy(in, out, length); |
31 |
return out; |
return out; |