Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Fran├žais - Portugu├¬s -

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab manual >> call_scilab API > TerminateScilab


Stops and terminates Scilab engine in Call Scilab

BOOL TerminateScilab(char *ScilabQuit);


This fonction stops the Scilab engine. It is strongly recommanded to call this function at the end when using Call Scilab .

BOOL is just a simple typedef on int (typedef int BOOL). TRUE is defined on 1 (#define TRUE 1) and FALSE is defined on 0 (#define FALSE 0).



a standard C char* containing the path to Scilab quit script (scilab.quit)

If ScilabStartup is NULL, Scilab will use the default path (detected from SCIpath).


1 (TRUE) if the operation is successfull.

0 (FALSE) if an error during initialization occured.


// A simple TerminateScilab example
if ( TerminateScilab(NULL) == FALSE ) {
 fprintf(stderr,"Error while calling TerminateScilab\n");
 return -2;


Sylvestre Ledru

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:25:14 CET 2011