c_freegrid - Free all of the dynamic memory allocated for an ADAPS geometric mapping grid

SYNTAX

#include "grid.h"

FUNCTION c_freegrid (grid)

    struct GRID *grid;

PARAMETERS

grid (struct GRID *, input/output)

An ADAPS geometric mapping grid.

DESCRIPTION

All of the dynamically allocated memory referenced by grid will be freed and the appropriate pointers are set to NULL.

RETURN VALUE

c_freegrid() returns

    E_SUCC --> Successful completion.
    E_FAIL --> Operation failed.