(C) 1998 AROS - The Amiga Research OS


NAME
#include <stdlib.h>

void * calloc ()

SYNOPSIS
size_t count
size_t size

FUNCTION
Allocate size bytes of memory, clears the memory (sets all bytes to 0) and returns the address of the first byte.

INPUTS
count
How many time size
size
How much memory to allocate.

RESULT
A pointer to the allocated memory or NULL. If you don't need the memory anymore, you can pass this pointer to free(). If you don't, the memory will be freed for you when the application exits.

EXAMPLE

SEE ALSO
free(), malloc()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
12.12.1996 aros
Use memset() to clean the memory area (faster code)
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
19.10.1996 aros
New functions: realloc(), memcpy() and calloc()