]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - libiberty/bzero.c
Imported gcc-4.4.3
[msp430-gcc.git] / libiberty / bzero.c
index 8874118698e4d826c4e86cc236746bce2d5d303a..44ad73da4d6e956cd012fc4de3ddc32b8a37f1ec 100644 (file)
@@ -12,14 +12,12 @@ is deprecated in favor of @code{memset}.
 
 */
 
+#include <stddef.h>
+
+extern void *memset(void *, int, size_t);
 
 void
-bzero (to, count)
-  char *to;
-  int count;
+bzero (void *to, size_t count)
 {
-  while (count-- > 0)
-    {
-      *to++ = 0;
-    }
+  memset (to, 0, count);
 }