diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2007-05-19 01:27:20 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2007-05-19 01:27:20 +0000 |
commit | c7ca977ef227fbfd67f1375bf6adbb32bc1550d0 (patch) | |
tree | e78bbacd6aa94e5c274d08bf2fa679b26cbf6b58 /contrib/gcclibs/libiberty/memcpy.c | |
parent | 00e4af377debde2b8de8b35a963a22d3eac8a1cd (diff) |
Notes
Diffstat (limited to 'contrib/gcclibs/libiberty/memcpy.c')
-rw-r--r-- | contrib/gcclibs/libiberty/memcpy.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/gcclibs/libiberty/memcpy.c b/contrib/gcclibs/libiberty/memcpy.c new file mode 100644 index 000000000000..9b5b24295df6 --- /dev/null +++ b/contrib/gcclibs/libiberty/memcpy.c @@ -0,0 +1,25 @@ +/* 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; +} |