Mercurial > hg > CbC > CbC_gcc
annotate libiberty/memcpy.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | f6334be47118 |
children |
rev | line source |
---|---|
0 | 1 /* memcpy (the standard C function) |
2 This function is in the public domain. */ | |
3 | |
4 /* | |
5 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
6 @deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, @ |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
7 size_t @var{length}) |
0 | 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 | |
13 | |
14 */ | |
15 | |
16 #include <ansidecl.h> | |
17 #include <stddef.h> | |
18 | |
19 void bcopy (const void*, void*, size_t); | |
20 | |
21 PTR | |
22 memcpy (PTR out, const PTR in, size_t length) | |
23 { | |
24 bcopy(in, out, length); | |
25 return out; | |
26 } |