summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/bcopy.c
diff options
context:
space:
mode:
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 733840b83..505e39dc7 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);
}