212
K
A
DAK
AMX 86 Procedures
ajbget ajbget
Purpose Get a Buffer
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID poolid;
char *buffp;
int status;
.
.
status = ajbget(poolid, &buffp);
AX DX ES:BX=
Where poolid is the pool id of the pool from which the buffer is to be obtained.
&buffp is a pointer to storage for the returned pointer to the buffer.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNSP = Invalid pool id
AERWNB = No free buffer available
If a buffer cannot be obtained, the value of buffp will be undefined.
If a buffer is allocated, the buffer use count is set to one.
See Also ajbfre, ajbau, ajbgsz