<< Previous | Next >> | |
|
xmem void * plast_fast( Pool_t * p );
Description
- Get the last allocated element in a root pool. The pool MUST be set to being a linked pool using
pool_link(p, <non-zero>);
otherwise, the results are undefined.
- This is an assembler-only version of
plast()
.
- *** Do _not_ call this function from C. ***
- Registers
- Parameter in IX
Trashes F, DE
Return value in HL, carry flag
- Example
ld ix,my_pool
lcall plast_fast
jr c,.no_elems
; HL points to last elementParameters
- p
- Pool handle structure, as previously passed to
pool_init()
. Pass this in IX register.
Return value
- C flag set, HL=0: there are no allocated elements
C flag clear (NC): HL points to last element.Library
- POOL.LIB
See Also
- pool_init, pool_link, plast, pprev_fast
Dynamic C Functions | << Previous | Next >> | rabbit.com |