diff options
| author | Ben Cheng <bccheng@google.com> | 2014-03-26 11:03:35 -0700 |
|---|---|---|
| committer | Ben Cheng <bccheng@google.com> | 2014-03-26 11:03:35 -0700 |
| commit | 09797ba54abf3683ea66eedddf6afbe7653f9cb9 (patch) | |
| tree | 8030b2ed79c7463c89d6da294782e9d503c84f50 /binutils-2.24/libiberty/memcpy.c | |
| parent | 5a2caf34e4995860baf405552163df288000b7bf (diff) | |
| download | toolchain_binutils-09797ba54abf3683ea66eedddf6afbe7653f9cb9.zip toolchain_binutils-09797ba54abf3683ea66eedddf6afbe7653f9cb9.tar.gz toolchain_binutils-09797ba54abf3683ea66eedddf6afbe7653f9cb9.tar.bz2 | |
Initial checkin of binutils 2.24.
Change-Id: I0dfcbae6608dded6c3586bf5f4ac27e9612e70a2
Diffstat (limited to 'binutils-2.24/libiberty/memcpy.c')
| -rw-r--r-- | binutils-2.24/libiberty/memcpy.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/binutils-2.24/libiberty/memcpy.c b/binutils-2.24/libiberty/memcpy.c new file mode 100644 index 0000000..7f67d0b --- /dev/null +++ b/binutils-2.24/libiberty/memcpy.c @@ -0,0 +1,26 @@ +/* memcpy (the standard C function) + This function is in the public domain. */ + +/* + +@deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, @ + size_t @var{length}) + +Copies @var{length} bytes from memory region @var{in} to region +@var{out}. Returns a pointer to @var{out}. + +@end deftypefn + +*/ + +#include <ansidecl.h> +#include <stddef.h> + +void bcopy (const void*, void*, size_t); + +PTR +memcpy (PTR out, const PTR in, size_t length) +{ + bcopy(in, out, length); + return out; +} |
