From afe56517950e244cb8943611c0223c6d7adb7d35 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 23 May 2002 18:46:04 +0000 Subject: 2002-05-23 Jeff Johnston * libc/include/string.h (bcmp, bcopy, bzero): Change prototypes to use void * pointers and comply with Single Unix spec. * libc/string/bcmp.c: Change to use void * instead of char *. * libc/string/bcopy.c: Ditto. * libc/string/bzero.c: Ditto. --- newlib/libc/string/bcopy.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'newlib/libc/string/bcopy.c') diff --git a/newlib/libc/string/bcopy.c b/newlib/libc/string/bcopy.c index 733840b83..505e39dc7 100644 --- a/newlib/libc/string/bcopy.c +++ b/newlib/libc/string/bcopy.c @@ -4,12 +4,12 @@ FUNCTION ANSI_SYNOPSIS #include - void bcopy(const char *<[in]>, char *<[out]>, size_t <[n]>); + void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>); TRAD_SYNOPSIS void bcopy(<[in]>, <[out]>, <[n]> - char *<[in]>; - char *<[out]>; + const void *<[in]>; + void *<[out]>; size_t <[n]>; DESCRIPTION @@ -30,9 +30,9 @@ QUICKREF void _DEFUN (bcopy, (b1, b2, length), - _CONST char *b1 _AND - char *b2 _AND + _CONST void *b1 _AND + void *b2 _AND size_t length) { - memmove ((_PTR) b2, (_PTR) b1, length); + memmove (b2, b1, length); } -- cgit v1.2.3