typedef void (*PK_FMALLO_f_t)(int *nbytes, char **memory, int *ifail);
Allocate virtual memory
Receives:
int *nbytes --- length of memory region in bytes
Returns:
char **memory --- pointer to start of memory region
int *ifail --- error code: FR_no_errors
--- FR_memory_full
Description:
This function allocates the specified amount of virtual memory (in bytes),
returning a pointer to the start address. The memory that is allocated
can be accessed using byte addresses in the range memory[0] to
memory[nbytes-1].
Parasolid assumes that the block of virtual memory can be filled with data
of any type, starting from the byte address which is returned. On machines
with alignment restrictions, the start address of a block of space must be
aligned onto an appropriate word boundary.
Space allocation is likely to be in the order of between 0.1 and 10 M bytes.
If there is insufficient space to satisfy a request, none is allocated.