Back to index

cell-binutils  2.17cvs20070401
bzero.c
Go to the documentation of this file.
00001 /* Portable version of bzero for systems without it.
00002    This function is in the public domain.  */
00003 
00004 /*
00005 
00006 @deftypefn Supplemental void bzero (char *@var{mem}, int @var{count})
00007 
00008 Zeros @var{count} bytes starting at @var{mem}.  Use of this function
00009 is deprecated in favor of @code{memset}.
00010 
00011 @end deftypefn
00012 
00013 */
00014 
00015 #include <stddef.h>
00016 
00017 extern void *memset(void *, int, size_t);
00018 
00019 void
00020 bzero (void *to, size_t count)
00021 {
00022   memset (to, 0, count);
00023 }