SendScilabJobs — Send Scilab tasks from a C/C++ code (call_scilab)
int SendScilabJobs(char **jobs, int numberjobs);
This fonction is provided in call_scilab. This function send many tasks which will be proccessed by the Scilab engine.
Note that the ending ";" is not mandatory at the end of a command.
an array of standard C char* containing the Scilab instructions
The number of the Scilab instructions
0 is all the operations are successful.
-10 if .
<0 and > -10 when an error occurred in the execution.
// A simple SendScilabJobs example char* jobs; jobs="a = 1"; jobs="b = 3"; jobs="c = a + b;"; SendScilabJobs(jobs,3); SendScilabJob("disp(c);"); // Will display 4.