OSDN Git Service

* common.opt (fshow-column): Default to 0.
[pf3gnuchains/gcc-fork.git] / libiberty / bcmp.c
index 1895773..c639f98 100644 (file)
@@ -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
-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);
 }