2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 ANSI C function bzero().
8 #include <proto/exec.h>
10 /*****************************************************************************
22 Write len zero bytes to ptr. If len is zero, does nothing.
25 ptr - The first byte of the area in memory to be cleared.
26 len - How many bytes to clear.
40 ******************************************************************************/
44 while (((IPTR
)bptr
)&(AROS_LONGALIGN
-1) && len
)
50 if (len
> sizeof(ULONG
))
52 ULONG
* ulptr
= (ULONG
*)bptr
;
54 while (len
> sizeof(ULONG
))
60 bptr
= (UBYTE
*)ulptr
;