c_copygrid - Copy an ADAPS geometric mapping grid.

SYNTAX

#include "grid.h"

FUNCTION c_copygrid (ingrid, outgrid)

    struct GRID *ingrid;
    struct GRID *outgrid;

PARAMETERS

ingrid (struct GRID *, input)

The ADAPS geometric mapping grid that is to be copied.

outgrid (struct GRID *, output)

The ADAPS geometric mapping grid that is to receive all of the values contained in ingrid.

DESCRIPTION

All of the dynamic memory currently allocated for outgrid is freed, enough memory is allocated to duplicate ingrid, and each value of ingrid is copied to outgrid.

RETURN VALUE

c_copygrid() returns

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