projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb, gdbserver: remove ARM regdat files
[deliverable/binutils-gdb.git]
/
libiberty
/
bcmp.c
diff --git
a/libiberty/bcmp.c
b/libiberty/bcmp.c
index 1895773d52d488762635d834b703c958b64afb85..c639f9895bcf35f5a5ef96e93b97177b471124ff 100644
(file)
--- a/
libiberty/bcmp.c
+++ b/
libiberty/bcmp.c
@@
-15,22
+15,13
@@
result mean @var{x} sorts before @var{y}).
*/
*/
+#include <stddef.h>
+
+extern int memcmp(const void *, const void *, size_t);
int
int
-bcmp (from, to, count)
- char *from, *to;
- int count;
+bcmp (const void *s1, const void *s2, size_t count)
{
{
- int rtnval = 0;
-
- while (count-- > 0)
- {
- if (*from++ != *to++)
- {
- rtnval = 1;
- break;
- }
- }
- return (rtnval);
+ return memcmp (s1, s2, count);
}
}
This page took
0.022812 seconds
and
4
git commands to generate.