3 /* memmove.c -- copy memory.
4 Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate.
6 By David MacKenzie <djm@gnu.ai.mit.edu>. */
15 memmove (void *dest0
, void const *source0
, size_t length
)
18 char const *source
= source0
;
20 /* Moving from low mem to hi mem; start at end. */
21 for (source
+= length
, dest
+= length
; length
; --length
)
23 else if (source
!= dest
)
25 /* Moving from hi mem to low mem; start at beginning. */
26 for (; length
; --length
)