dbbf32dd39
version 2.12.0. These bits are taken from the FSF anoncvs repo on 27-January-2002 03:41 PST.
26 lines
410 B
C
26 lines
410 B
C
/* 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;
|
|
}
|
|
}
|