Subversion Repositories seema-scanner

Rev

Rev 28 | Rev 155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28 Rev 74
Line 9... Line 9...
9
 
9
 
10
using namespace std;
10
using namespace std;
11
 
11
 
12
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){
12
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){
13
    
13
    
14
    mexPrintf("nlhs: %d , nrhs: %d\n", nlhs, nrhs);
14
    //mexPrintf("nlhs: %d , nrhs: %d\n", nlhs, nrhs);
15
    
15
    
16
    // Get the command string
16
    // Get the command string
17
    char cmd[64];
17
    char cmd[64];
18
	if (nrhs < 1 || mxGetString(prhs[0], cmd, sizeof(cmd)))
18
	if (nrhs < 1 || mxGetString(prhs[0], cmd, sizeof(cmd)))
19
		mexErrMsgTxt("First input should be a command string less than 64 characters long.");
19
		mexErrMsgTxt("First input should be a command string less than 64 characters long.");