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
d36cef20c56731fabc5a73e6fdad19838d96e8d5
1
/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined
2
if the source overlaps with the destination.
3
Return DESTADDR. */
4
5
#if HAVE_CONFIG_H
6
# include <config.h>
7
#endif
8
9
char
*
10
memcpy
(
destaddr
,
srcaddr
,
len
)
11
char
*
destaddr
;
12
const char
*
srcaddr
;
13
int
len
;
14
{
15
char
*
dest
=
destaddr
;
16
17
while
(
len
-- >
0
)
18
*
destaddr
++ = *
srcaddr
++;
19
return
dest
;
20
}