00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef HYDROALLOC_MEM_H_
00012 #define HYDROALLOC_MEM_H_
00013
00014 #include <stdio.h>
00015 #define malloc1d( m , type) ( (type*)matrixalloc1D( m, sizeof(type)) )
00016 #define malloc2d( m , n , type ) ( (type**)matrixalloc2D( m , n , sizeof(type)) )
00017 #define malloc3d( m , n , o , type ) ( (type***)matrixalloc3D( m , n , o , sizeof(type)) )
00018
00019
00020
00021 FILE **allocate_1d_F(int nrows);
00022 void* matrixalloc1D( int, long );
00023 void** matrixalloc2D( int, int, long );
00024 void*** matrixalloc3D( int, int, int, long );
00025 #endif
00026