The Complete SPRLIB & ANNLIB

DMEM

- a structure used to hold dynamically allocated memory information (LOCAL)

SYNOPSIS

typedef struct dmem

{

char *Malloc; Pointer to an allocated memory block.

struct dmem *Next; Linked list pointer.

} DMEM;

char *MemInUse A pointer to the first DMEM structure.

DESCRIPTION

There is a family of functions to allocate datasets, networks and other structures from a pool. A linked list of allocated blocks is kept for each type of structure.

NOTE

Unfortunately, the DMEM type and the variable MemInUse are declared twice in SPRANNLIB: once for network allocation routines (netalloc.c) and once for pattern allocation routines (patalloc.c). Their function is, however, identical. This means that in both modules a separate linked list of DMEM structures is maintained.

SEE ALSO

STOCK-values, STOCK-variables, malloc_net, malloc_netlib, malloc_dataset , malloc_local

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998