#include #include "wchar.h" #include extern "C" { #include #include #include #include "localization.h" #include "fun.h" #include #include #include #include "os_string.h" #include static const char fname[] = "octave_fun"; int sci_octave_fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt* opt, int nout, scilabVar* out) { //printf("nin: %d\n", nin); if (nin < 1) { Scierror(999, _("%s: Wrong number of input arguments. Atleast %d expected.\n"), fname, 1); return STATUS_ERROR; } FUNCCALL funcall; FUNCCALL *funptr = &funcall; funcall.n_in_arguments = nin; funcall.n_out_user = nout; FUNCARGS ins[funcall.n_in_arguments*nout]; FUNCARGS *argptr = ins; int i,j; double* d; int size; char str[20]; char* c; double* n = NULL; int row = 0; int col = 0; for(i=0;i