<< SL_MAvail | SL_MHFree >> |
Top: Documentation Library | Up: SoftLogik App Library API |
SL_MHAlloc
NAME
SL_MHAlloc -- allocate memory in the form of a handle.
SYNOPSIS
memhandle = SL_MHAlloc(apphandle, size, flags);
D0 A0 D0 D1
MEMHANDLE SL_MHAlloc(APPHANDLE, SLMSIZE, ULONG);
FUNCTION
Allocates a memory handle that contains a pointer to the requested
memory. The memory is cleared before returning it to the application.
The size of the memory to allocate may be zero. In this case only the
handle is allocated. The handle must be grown or reallocated to get
memory associated with it.
INPUTS
apphandle - as returned by SL_AppInitA.
size - the size of the memory to allocate (may be 0).
flags - any of: MEMFLG_PRUGEABLE, MEMFLG_GROWABLE or MEMFLG_LOCKED.
RESULTS
memhandle - a pointer to a memory handle used to refer to the requested
memory.
SEE ALSO
SL_MHFree, SL_MHGrow, SL_MHShrink, SL_MHRealloc, SL_MHLock, SL_MHUnlock, SL_SetMHAttr, SL_GetMHAttr.
SL_MHAlloc Command Section By Type url:SL_MHAlloc
created:2008-03-01 23:36:25 last updated:2008-03-01 23:36:25
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For SL_MHAlloc | sign in to add a comment |
There are no user contributed comments for this page. |
<< SL_MAvail | SL_MHFree >> |
Top: Documentation Library | Up: SoftLogik App Library API |