Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - English


TerminateScilab

Stops and terminates Scilab engine in Call Scilab

BOOL TerminateScilab(char *ScilabQuit);

Description

This fonction stops the Scilab engine. It is strongly recommended 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).

Arguments

ScilabQuit

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).

returns

1 (TRUE) if the operation is successful.

0 (FALSE) if an error during initialization occurred.

Examples

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

See also

  • Call_Scilab — call_scilab is an interface which provides the ability to call Scilab engine from C/C++ code
  • Compile and run with call_scilab — How to compile a native application based on or using Scilab
  • StartScilab — Initializes and starts Scilab engine in Call Scilab
  • SendScilabJob — Send a Scilab task from a C/C++ code (call_scilab)
  • Double Management — How to manage Scilab's variable read and write process using call_scilab and api_scilab
  • Boolean Management — How to manage Scilab's boolean read and write process using call_scilab and api_scilab
  • Complex Management — How to manage Scilab's complex variable read and write process using call_scilab
  • String Management — How to manage Scilab's String read and write process using call_scilab and api_scilab
Report an issue
<< String management call_scilab API (Scilab engine) call_scilab >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:37:13 CEST 2023