Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Русский

Change language to:
English - Français - 日本語 - Português -

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

Справка Scilab >> API Scilab > Scilab Gateway API > Rhs (deprecated)

Rhs (deprecated)

A C gateway function which provides the number of input arguments present in the calling Scilab function This function is obsolete.

Calling Sequence

nb_params Rhs

Arguments

nb_params

the number of input arguments present in the calling Scilab function

Description

A C gateway function which provides the number of input arguments present in the calling Scilab function. You must include stack-c.h to benefit from this function.

Note: Rhs means Right Hand Side.

WARNING: This API is deprecated from Scilab 5.2.0 and is going to be removed with Scilab 6.0. Please use API Scilab (the new Scilab API).

Examples

In this example, the C interface function can take several input arguments and prints in the Scilab console the integer corresponding to the number of input arguments detected in the calling Scilab function.

#include <stack-c.h>
#include <sciprint.h>

int sci_myrhs(char * fname)
{
  sciprint("The number of input parameters is %d\n", Rhs);

  return 0;
}

See Also

  • getNbInputArgument — A C gateway function which provides the number of input arguments present in the calling Scilab function
  • getNbOutputArgument — A C gateway function which provides the number of output arguments present in the calling Scilab function
  • sciprint — A C gateway function which displays standard messages to the user (same profil as the C printf function)
  • Lhs — A C gateway function which provides the number of input arguments present in the calling Scilab function This function is obsolete.
Report an issue
<< LhsVar (deprecated) Scilab Gateway API Scierror >>

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:
Wed Apr 01 10:27:30 CEST 2015