SendScilabJob — Send a Scilab task from a C/C++ code (call_scilab)
int SendScilabJob(char *job);
This fonction is provided in call_scilab. This function send a task which will be proccessed by the Scilab engine.
a standard C char* containing the Scilab instructions
0 is the operation is successfull.
-1 if Call Scilab has not been able to write the job into Scilab.
-2 or -3 if Call Scilab has not been able to read the error code from Scilab.
-4 if Call Scilab has not been able to allocate the job.
// A simple SendScilabJob example if (SendScilabJob("disp('unfinished quote)")!=0){ // This will fail printf("An error occured\n"); } SendScilabJob("myMatrix=['sample','for the help']");