A C gateway function which provides the number of input arguments present in the calling Scilab function
nb_params = getNbInputArgument(void* _pvCtx)
nb_params = nbInputArgument
nb_params = Rhs
:
A C gateway function which provides the number of input arguments present in the calling Scilab function. You must include api_scilab.h to benefit from this function.
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 "api_scilab.h"
#include "sciprint.h"
`int`_ sci_myrhs(char * fname)
{
sciprint("The number of input parameters is %d\n", getNbInputArgument);
return 0;
}