You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
435 B

/* Portable version of bzero for systems without it.
This function is in the public domain. */
/*
25 years ago
@deftypefn Supplemental void bzero (char *@var{mem}, int @var{count})
25 years ago
Zeros @var{count} bytes starting at @var{mem}. Use of this function
is deprecated in favor of @code{memset}.
25 years ago
@end deftypefn
*/
21 years ago
#include <stddef.h>
extern void *memset(void *, int, size_t);
void
21 years ago
bzero (void *to, size_t count)
{
21 years ago
memset (to, 0, count);
}