96 #define NULL ((void *)0)
127 char ***
blArray3D(
int size,
int dim1,
int dim2,
int dim3)
129 char ***array =
NULL;
133 if((array = (
char ***)malloc(dim1 *
sizeof(
char **))) ==
NULL)
137 for(i=0; i<dim1; i++) array[i] =
NULL;
140 for(i=0; i<dim1; i++)
143 if((array[i] = (
char **)malloc(dim2 *
sizeof(
char *))) ==
NULL)
147 for(j=0; j<dim2; j++) array[i][j] =
NULL;
150 for(j=0; j<dim2; j++)
153 if((array[i][j] = (
char *)malloc(dim3 * size)) ==
NULL)
188 for(i=0; i<dim1; i++)
192 for(j=0; j<dim2; j++)
194 if(array[i][j] !=
NULL)
void blFreeArray3D(char ***array, int dim1, int dim2, int dim3)
char *** blArray3D(int size, int dim1, int dim2, int dim3)
Include file for 2D/3D array functions.