/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/hydrotrend/hydroalloc_mem.h

Go to the documentation of this file.
00001 /*
00002  *      HydroAlloc_Mem.h
00003  *
00004  *      Allocate memory
00005  *
00006  *      Author:         A.J. Kettner (September 2002)
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 /*      FUNCTION DEFINITIONS */
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 

Generated on Fri Jan 4 18:04:14 2008 for sedflux by  doxygen 1.5.2