2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
5 ANSI C function calloc().
8 #include <exec/types.h>
11 /*****************************************************************************
23 Allocate size bytes of memory, clears the memory (sets all bytes to
24 0) and returns the address of the first byte.
27 count - How many time size
28 size - How much memory to allocate.
31 A pointer to the allocated memory or NULL. If you don't need the
32 memory anymore, you can pass this pointer to free(). If you don't,
33 the memory will be freed for you when the application exits.
36 This function must not be used in a shared library or
37 in a threaded application.
48 ******************************************************************************/
54 /* Allocate the memory */
58 memset (mem
, 0, size
);