1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 02:10:57 +02:00

Return a value!

This commit is contained in:
Jim Meyering
1996-07-14 15:05:40 +00:00
parent ade337e1a8
commit 4b8b59894b

View File

@@ -7,7 +7,7 @@
#include <config.h>
#endif
void
void *
memmove (dest, source, length)
char *dest;
const char *source;
@@ -18,7 +18,11 @@ memmove (dest, source, length)
for (source += length, dest += length; length; --length)
*--dest = *--source;
else if (source != dest)
/* Moving from hi mem to low mem; start at beginning. */
for (; length; --length)
*dest++ = *source++;
{
/* Moving from hi mem to low mem; start at beginning. */
for (; length; --length)
*dest++ = *source++;
--dest;
}
return (void *) dest;
}