home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
gnu
/
libnix-0.8-src.lha
/
libnix-0.8
/
sources
/
nix
/
misc
/
bzero.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-12-12
|
246 b
|
16 lines
#include <string.h>
void bzero(void *b,size_t len)
{ size_t n;
if((unsigned long)b&1)
{ *((char *)b)++=0;
len--; }
n=len/sizeof(long);
len-=n*sizeof(long);
while(n--)
*((long *)b)++=0;
while(len--)
*((char *)b)++=0;
}