Back to index

cell-binutils  2.17cvs20070401
memcpy.c
Go to the documentation of this file.
00001 /* memcpy (the standard C function)
00002    This function is in the public domain.  */
00003 
00004 /*
00005 
00006 @deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, size_t @var{length})
00007 
00008 Copies @var{length} bytes from memory region @var{in} to region
00009 @var{out}.  Returns a pointer to @var{out}.
00010 
00011 @end deftypefn
00012 
00013 */
00014 
00015 #include <ansidecl.h>
00016 #include <stddef.h>
00017 
00018 void bcopy (const void*, void*, size_t);
00019 
00020 PTR
00021 memcpy (PTR out, const PTR in, size_t length)
00022 {
00023     bcopy(in, out, length);
00024     return out;
00025 }