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