<< ScilabHaveAGraph call_scilab API (Scilab engine) SendScilabJobs >>

Scilab Help >> call_scilab API (Scilab engine) > SendScilabJob

SendScilabJob

Send a Scilab task from a C/C++ code (call_scilab)

int SendScilabJob(char *job);

Description

This fonction is provided in call_scilab. This function send a task which will be processed by the Scilab engine.

Arguments

job

a standard C char* containing the Scilab instructions

returns

0 if the execution is successful.

-1 if the execution fails.

Examples

// A simple SendScilabJob example

if (SendScilabJob("disp('unfinished quote)")!=0){ // This will fail
 printf("An error occurred\n");
}
SendScilabJob("myMatrix=['sample','for the help']");

See also


Report an issue
<< ScilabHaveAGraph call_scilab API (Scilab engine) SendScilabJobs >>