(C) 1998 AROS - The Amiga Research OS


NAME

void * ArpAlloc (size_in_bytes , , , )

LOCATION
In ArpBase at offset 64

SYNOPSIS
ULONG size_in_bytes
Memory = ArpAlloc( size_in_bytes
d0 d0

FUNCTION
This function provides a simple memory allocation/tracking mechanism. You can allocate memory with this function and, when you CloseLibrary(ArpBase) or ArpExit(code), the memory will be automatically freed for you. You can make multiple calls to ArpAlloc(), each allocation will be tracked.

INPUTS
size_in_bytes
Amount of memory required.
RESULT
Pointer to a memory block with attributes (MEMF_PUBLIC | MEMF_CLEAR), or zero, if an error occurred. WARNINGS/ADDITIONAL CONSIDERATIONS REMEMBER: You must call CloseLibrary(ArpBase) for the resource freeing to occur.

EXAMPLE
SEE ALSO
ArpAllocEntry, FreeTaskResList, ArpOpen, ArpUnLock, ArpDupLock.

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
28.03.1998 bergers
Some new functions.