3 #include <grass/imagery.h>
26 if ((
char *)b !=
NULL)
38 x = (
double **)
I_malloc((a + 1) *
sizeof(
double *));
40 for (i = 0; i < a; i++) {
43 x[i] = (
double *)
I_malloc(b *
sizeof(
double));
45 for (n = 0; n <
b; n++)
59 x = (
int *)
I_malloc(a *
sizeof(
int));
61 for (i = 0; i < a; i++)
72 x = (
int **)
I_malloc((a + 1) *
sizeof(
int *));
74 for (i = 0; i < a; i++) {
75 x[i] = (
int *)
I_malloc(b *
sizeof(
int));
77 for (n = 0; n <
b; n++)
91 for (i = 0; x[i] !=
NULL; i++)
105 for (i = 0; x[i] !=
NULL; i++)
119 x = (
double ***)G_malloc((a + 1) *
sizeof(
double **));
121 for (i = 0; i < a; i++) {
124 for (n = 0; n < i; n++)
128 return (
double ***)
NULL;
142 for (i = 0; x[i] !=
NULL; i++)
void G_free(void *buf)
Free allocated memory.
int I_free_double3(double ***x)
void * I_malloc(size_t n)
double *** I_alloc_double3(int a, int b, int c)
void * I_realloc(void *b, size_t n)
int ** I_alloc_int2(int a, int b)
int I_free_double2(double **x)
double ** I_alloc_double2(int a, int b)