repo.or.cz
/
coreutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
.
[coreutils.git]
/
lib
/
memcpy.c
blob
dba7d56f125b92278581863119369de9d72185f5
1
/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined
2
if the source overlaps with the destination.
3
Return DESTADDR. */
4
5
char
*
6
memcpy
(
destaddr
,
srcaddr
,
len
)
7
char
*
destaddr
;
8
const char
*
srcaddr
;
9
int
len
;
10
{
11
char
*
dest
=
destaddr
;
12
13
while
(
len
-- >
0
)
14
*
destaddr
++ = *
srcaddr
++;
15
return
dest
;
16
}