aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/bcopy.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-05-23 18:46:04 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-05-23 18:46:04 +0000
commitafe56517950e244cb8943611c0223c6d7adb7d35 (patch)
tree06bc3d4072f127c3d381a9648bf57bb57feb3451 /newlib/libc/string/bcopy.c
parent70781754743755b45a7b10c07fadf92afea26b53 (diff)
downloadnewlib-afe56517950e244cb8943611c0223c6d7adb7d35.zip
newlib-afe56517950e244cb8943611c0223c6d7adb7d35.tar.gz
newlib-afe56517950e244cb8943611c0223c6d7adb7d35.tar.bz2
2002-05-23 Jeff Johnston <jjohnstn@redhat.com>
* 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.
Diffstat (limited to 'newlib/libc/string/bcopy.c')
-rw-r--r--newlib/libc/string/bcopy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/string/bcopy.c b/newlib/libc/string/bcopy.c
index 733840b..505e39d 100644
--- a/newlib/libc/string/bcopy.c
+++ b/newlib/libc/string/bcopy.c
@@ -4,12 +4,12 @@ FUNCTION
ANSI_SYNOPSIS
#include <string.h>
- 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);
}