<< Previous | Next >> | |
|
xmem word pavail_fast( Pool_t * p );
Description
- Return the number of elements that are currently available for allocation.
- This is an assembler-only version of
pavail()
.
- *** Do _not_ call this function from C. ***
Registers
- Parameter in IX
Trashes F, DE
Return value in HL, Z flagEXAMPLE
- ld ix,my_pool
lcall pavail_fast
; HL contains number of available elementsParameters
- p
- Pool handle structure, as previously passed to
pool_init()
orpool_xinit()
. This must be provided in the IX register.
Return value
- Number of elements available for allocation. The return value is placed in HL. In addition, the 'Z' flag is set if there are no free elements.
Library
- POOL.LIB
See Also
- pool_init, pool_xinit, phwm, pnel
Dynamic C Functions | << Previous | Next >> | rabbit.com |