Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Dynamic allocation/free of bidimensional arrays


Functions

int alloc2d (void ***pt_tabl, int nrow, int ncol, short datatype)
int free2d (void ***pt_tabl, short datatype)

Function Documentation

int alloc2d void ***  pt_tabl,
int  nrow,
int  ncol,
short  datatype
 

dynamic allocation of a bidimensional array : tab[i][j]

Parameters:
pt_tabl [(type) ***] name of array
nrow,ncol [int ] nb of rows and columns to allocate
datatype [short ] type of data (defined in alloc.h)

Definition at line 32 of file dyn_alloc.c.

References CHAR, DOUBLE, FLOAT, INT, LONG, and SHORT.

int free2d void ***  pt_tabl,
short  datatype
 

to free previous 2D allocated array (see alloc2d())

Parameters:
pt_tabl [(type) ***] name of array
datatype [short ] type of data

Definition at line 112 of file dyn_alloc.c.

References CHAR, DOUBLE, FLOAT, INT, LONG, and SHORT.


Generated on Tue Jul 1 17:35:47 2003 for IFU_C_iolibs by doxygen1.3