projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2009-07-02 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git]
/
libiberty
/
bzero.c
diff --git
a/libiberty/bzero.c
b/libiberty/bzero.c
index 1f52d2d3098f311b4e900f9a871174cdc17e7bec..44ad73da4d6e956cd012fc4de3ddc32b8a37f1ec 100644
(file)
--- a/
libiberty/bzero.c
+++ b/
libiberty/bzero.c
@@
-12,12
+12,12
@@
is deprecated in favor of @code{memset}.
*/
+#include <stddef.h>
+
+extern void *memset(void *, int, size_t);
void
-bzero (
char *to, in
t count)
+bzero (
void *to, size_
t count)
{
- while (count-- > 0)
- {
- *to++ = 0;
- }
+ memset (to, 0, count);
}
This page took
0.022809 seconds
and
4
git commands to generate.