2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 POSIX.1-2001 function bzero().
6 Function is deprecated and removed from POSIX.1-2008
9 #include <proto/exec.h>
11 #define bzero bzero_inline
15 /*****************************************************************************
27 Write len zero bytes to ptr. If len is zero, does nothing.
30 ptr - The first byte of the area in memory to be cleared.
31 len - How many bytes to clear.
45 ******************************************************************************/
49 while (((IPTR
)bptr
)&(AROS_LONGALIGN
-1) && len
)
55 if (len
> sizeof(ULONG
))
57 ULONG
* ulptr
= (ULONG
*)bptr
;
59 while (len
> sizeof(ULONG
))
65 bptr
= (UBYTE
*)ulptr
;