You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
498 B
21 lines
498 B
/* ---- memory allocation ---- */
|
|
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
int *alloc_1d_int(int n1);
|
|
void free_1d_int(int *i);
|
|
double *alloc_1d_double(int n1);
|
|
void free_1d_double(double *d);
|
|
int **alloc_2d_int(int n1, int n2);
|
|
void free_2d_int(int **ii);
|
|
double **alloc_2d_double(int n1, int n2);
|
|
void free_2d_double(double **dd);
|
|
int ***alloc_3d_int(int n1, int n2, int n3);
|
|
void free_3d_int(int ***iii);
|
|
double ***alloc_3d_double(int n1, int n2, int n3);
|
|
void free_3d_double(double ***ddd);
|
|
|