]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/bzero.c
[libiberty] Use pipe inside pex_run
[thirdparty/gcc.git] / libiberty / bzero.c
CommitLineData
28e9041c 1/* Portable version of bzero for systems without it.
2 This function is in the public domain. */
3
4/*
28e9041c 5
614a23c6 6@deftypefn Supplemental void bzero (char *@var{mem}, int @var{count})
28e9041c 7
614a23c6 8Zeros @var{count} bytes starting at @var{mem}. Use of this function
9is deprecated in favor of @code{memset}.
28e9041c 10
614a23c6 11@end deftypefn
28e9041c 12
13*/
14
943c390a 15#include <stddef.h>
16
17extern void *memset(void *, int, size_t);
28e9041c 18
19void
943c390a 20bzero (void *to, size_t count)
28e9041c 21{
943c390a 22 memset (to, 0, count);
28e9041c 23}