diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-05-23 18:46:04 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-05-23 18:46:04 +0000 |
commit | afe56517950e244cb8943611c0223c6d7adb7d35 (patch) | |
tree | 06bc3d4072f127c3d381a9648bf57bb57feb3451 /newlib/libc/string/bcmp.c | |
parent | 70781754743755b45a7b10c07fadf92afea26b53 (diff) | |
download | cygnal-afe56517950e244cb8943611c0223c6d7adb7d35.tar.gz cygnal-afe56517950e244cb8943611c0223c6d7adb7d35.tar.bz2 cygnal-afe56517950e244cb8943611c0223c6d7adb7d35.zip |
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/bcmp.c')
-rw-r--r-- | newlib/libc/string/bcmp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/string/bcmp.c b/newlib/libc/string/bcmp.c index b6a4d5298..23e7c26a2 100644 --- a/newlib/libc/string/bcmp.c +++ b/newlib/libc/string/bcmp.c @@ -7,17 +7,17 @@ INDEX ANSI_SYNOPSIS #include <string.h> - int bcmp(const char *<[s1]>, const char *<[s2]>, size_t <[n]>); + int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>); TRAD_SYNOPSIS #include <string.h> int bcmp(<[s1]>, <[s2]>, <[n]>) - char *<[s1]>; - char *<[s2]>; + const void *<[s1]>; + const void *<[s2]>; size_t <[n]>; DESCRIPTION - This function compares not more than <[n]> characters of the + This function compares not more than <[n]> bytes of the object pointed to by <[s1]> with the object pointed to by <[s2]>. This function is identical to <<memcmp>>. @@ -41,8 +41,8 @@ QUICKREF int _DEFUN (bcmp, (m1, m2, n), - _CONST char *m1 _AND - _CONST char *m2 _AND + _CONST void *m1 _AND + _CONST void *m2 _AND size_t n) { |