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 00016 void 00017 bzero (to, count) 00018 char *to; 00019 int count; 00020 { 00021 while (count-- > 0) 00022 { 00023 *to++ = 0; 00024 } 00025 }
1.5.6