Mercurial > hg > octave-nkf > gnulib-hg
changeset 4634:ceebc07ec450
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 | 74b0d8b988f7 |
children | c74e2d0a05f5 |
files | lib/bcopy.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/bcopy.c +++ b/lib/bcopy.c @@ -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)