Rhs — A C gateway function which provides the number of input arguments present in the calling Scilab function
nb_params Rhs
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).
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; }