Mercurial > gnulib
changeset 24325:c57d98b3f5f8
Include <stddef.h>.
(bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 08 Sep 2003 23:16:12 +0000 |
parents | 95da71f322a3 |
children | 46a4c24606af |
files | lib/bcopy.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/bcopy.c Mon Sep 08 23:08:47 2003 +0000 +++ b/lib/bcopy.c Mon Sep 08 23:16:12 2003 +0000 @@ -3,11 +3,13 @@ In the public domain. By David MacKenzie <djm@gnu.ai.mit.edu>. */ +#include <stddef.h> + void -bcopy (source, dest, length) - char *source, *dest; - unsigned length; +bcopy (void const *source0, void *dest0, size_t length) { + char const *source = source0; + char *dest = dest0; if (source < dest) /* Moving from low mem to hi mem; start at end. */ for (source += length, dest += length; length; --length)