AMX Memory Manager
K
A
DAK
133
Your Memory Assignment Procedure can be coded as a Large or Medium model Cprocedure with formal parameters as follows.int cdecl memproc(
long *memsizep, /* Pointer to memory size storage */
char **memptrp) /* Pointer to memory pointer storage */
{:
:
if (another memory section is available) {
*memsizep = <size of memory section in bytes>;
*memptrp = <pointer to memory section>;
return(1);
}
return(0); /* No memory left */
}