stl_bvector.h (swap(_Bit_reference,_Bit_reference)): Move/rename...
[official-gcc.git] / libiberty / bzero.c
blob8874118698e4d826c4e86cc236746bce2d5d303a
1 /* Portable version of bzero for systems without it.
2 This function is in the public domain. */
4 /*
6 @deftypefn Supplemental void bzero (char *@var{mem}, int @var{count})
8 Zeros @var{count} bytes starting at @var{mem}. Use of this function
9 is deprecated in favor of @code{memset}.
11 @end deftypefn
16 void
17 bzero (to, count)
18 char *to;
19 int count;
21 while (count-- > 0)
23 *to++ = 0;