(C) 1998 AROS - The Amiga Research OS
NAME
#include <>
APTR AllocTaskMem ()
SYNOPSIS
struct Task * task
ULONG size
ULONG req
FUNCTION
Allocate memory which will be freed when the task is removed.
INPUTS
task
The memory will be freed when this task is removed.
size
How much memory.
req
What memory. See AllocMem() for details.
RESULT
Adress to a memory block or NULL if no memory was available.
EXAMPLE
SEE ALSO
AllocMem(), FreeTaskMem()
NOTES
BUGS
INTERNALS
The memory is allocated and queued in the tc_MemList. This list is freed in RemTask().
HISTORY