mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
385576a748
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@29024 a95241bf-73f2-0310-859d-f6bbb57e9c96
24 lines
435 B
C
24 lines
435 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
|
|
|
|
*/
|
|
|
|
#include <stddef.h>
|
|
|
|
extern void *memset(void *, int, size_t);
|
|
|
|
void
|
|
bzero (void *to, size_t count)
|
|
{
|
|
memset (to, 0, count);
|
|
}
|