#include <cx/DataAccess.h>cxLattice *cxLatDup(cxLattice *src, int dataCopy, int coordCopy)
integer function cxLatDup(src, dataCopy, coordCopy) integer src, dataCopy, coordCopy
Lattice data structures are allocated from a shared memory arena on Silicon Graphics workstations running IRIX. This shared memory is a limited resource, so it is possible for the memory to be exhausted, causing the allocation routine to fail. If the allocation routine fails, any memory it has successfully allocated will be released, and a NULL pointer will be returned. The subroutine cxDataAllocErrorGet returns TRUE if the lattice could not be allocated. See cxDataAllocErrorGet for more details on writing portable module code that copes well with limited memory.