]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/memcpy.c
c++: Implement __is_nothrow_invocable built-in trait
[thirdparty/gcc.git] / libiberty / memcpy.c
CommitLineData
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
9Copies @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 19void bcopy (const void*, void*, size_t);
0ae0f1b0 20
50b009c5
ML
21void *
22memcpy (void *out, const void *in, size_t length)
6599da04
JM
23{
24 bcopy(in, out, length);
25 return out;
26}