[GRASS-user] GRASS Dynamic allocation of multi dimensional array

gianluca massei g_massa at libero.it
Sat Aug 9 09:18:31 EDT 2008


Hy list,
could anybody help me to declare a 3D matrix in C GRASS module. I've to 
load several raster map with same location but I've an error in run time 
if I declare with G_malloc/G_calloc like that:
double ***mat;

mat=(double***)G_malloc(ndimension*(sizeof(double));

thanks

Gianluca
>
>
>
>   



More information about the grass-user mailing list