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