NAME

cxVecNew - create a vector of the given type.
#include <cx/DataAccess.h>

typedef enum {
 cx_prim_byte,
 cx_prim_short,
 cx_prim_long,
 cx_prim_float,
 cx_prim_double
} cxPrimType;

void *cxVecNew(long len, cxPrimType type)
integer cx_prim_byte
integer cx_prim_short
integer cx_prim_long
integer cx_prim_float
integer cx_prim_double

parameter (cx_prim_byte = 0) parameter (cx_prim_short = 1) parameter (cx_prim_long = 2) parameter (cx_prim_float = 3) parameter (cx_prim_double = 4)
<type> function cxVecNew(len, type) integer len integer type
len
Number of vector elements.
type
Element type.
cxVecNew creates a vector of len elements of type type from IRIS Explorer data memory. Both C and Fortran versions return a pointer to the vector.

See cxDataManAbortOnError for more details on writing portable module code that copes well with limited memory.

cxDataManAbortOnError



[ Documentation Home ]