Hi everyone, I have a C interface problem,can someone help me?
I write a C function to read a BMP file and it returns a M*N matrix.I
define the function like this"void read_file(char * filename,double A,
int m, int n)", A is a m*n matrix.In the function, I use "filename"
only once,"file = fopen(filename,"rb"); ". I also write a interface,but
it can't work.I write like this:
int minlhs=1, maxlhs=1, minrhs=1, maxrhs=1;
GetRhsVar(1, "c", &m1, &n1, &l1);
CreateVar(2, "d", &m2, &n2, &l2);
LhsVar(1) = 2;
I think the problem is " GetRhsVar(1, "c", &m1, &n1, &l1);",but I don't
konw how to correct it, can someone help me,thanks!