How can I pass my matrix to a function in another file to do something? I allocated my matrix containing structs like this:
typedef struct {
int x;
int y;
int z;
} myStruct;
myStruct(*matrix)[COL] = malloc(ROW*sizeof*matrix);