diff options
Diffstat (limited to 'x/binutils/libiberty/bzero.c')
-rw-r--r-- | x/binutils/libiberty/bzero.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/x/binutils/libiberty/bzero.c b/x/binutils/libiberty/bzero.c new file mode 100644 index 0000000..8874118 --- /dev/null +++ b/x/binutils/libiberty/bzero.c @@ -0,0 +1,25 @@ +/* Portable version of bzero for systems without it. + This function is in the public domain. */ + +/* + +@deftypefn Supplemental void bzero (char *@var{mem}, int @var{count}) + +Zeros @var{count} bytes starting at @var{mem}. Use of this function +is deprecated in favor of @code{memset}. + +@end deftypefn + +*/ + + +void +bzero (to, count) + char *to; + int count; +{ + while (count-- > 0) + { + *to++ = 0; + } +} |