]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | /* memcpy (the standard C function) |
2 | This function is in the public domain. */ | |
3 | ||
4 | /* | |
6599da04 | 5 | |
996c0cb0 RW |
6 | @deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, @ |
7 | size_t @var{length}) | |
aaa5f039 DD |
8 | |
9 | Copies @var{length} bytes from memory region @var{in} to region | |
10 | @var{out}. Returns a pointer to @var{out}. | |
11 | ||
12 | @end deftypefn | |
6599da04 | 13 | |
6599da04 JM |
14 | */ |
15 | ||
16 | #include <ansidecl.h> | |
6599da04 | 17 | #include <stddef.h> |
6599da04 | 18 | |
6da879de | 19 | void bcopy (const void*, void*, size_t); |
0ae0f1b0 | 20 | |
50b009c5 ML |
21 | void * |
22 | memcpy (void *out, const void *in, size_t length) | |
6599da04 JM |
23 | { |
24 | bcopy(in, out, length); | |
25 | return out; | |
26 | } |