- Scilab Help
- API Scilab
- legacy
- Low level functions
- AssignOutputVariable
- CallOverloadFunction
- CheckInputArgument
- CheckOutputArgument
- ReturnArguments
- UpdateStack
- Boolean reading (Scilab gateway)
- Boolean writing (Scilab gateway)
- Boolean sparse reading (Scilab gateway)
- Boolean sparse writing (Scilab gateway)
- Check variable dimensions (Scilab gateway)
- Variable Reference (Scilab gateway)
- Variable dimension (Scilab gateway)
- Variable Type (Scilab gateway)
- Variable Complexity (Scilab gateway)
- Matrix Type (Scilab gateway)
- deleteNamedVariable
- Double reading (Scilab gateway)
- Double writing (Scilab gateway)
- getNbInputArgument (Scilab gateway)
- getNbOutputArgument (Scilab gateway)
- Handle reading (Scilab gateway)
- Handle writing (Scilab gateway)
- Integer Precision (Scilab gateway)
- Integer reading (Scilab gateway)
- Integer writing (Scilab gateway)
- nbInputArgument (Scilab gateway)
- Pointer reading (Scilab gateway)
- Pointer writing (Scilab gateway)
- Polynomial Symbolic Variable (Scilab gateway)
- Polynomial reading (Scilab gateway)
- Polynomial writing (Scilab gateway)
- Sparse matrix reading (Scilab gateway)
- Sparse writing (Scilab gateway)
- String reading (Scilab gateway)
- String writing (Scilab gateway)
Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.
nbInputArgument (Scilab gateway)
A C gateway function which provides the number of input arguments present in the calling Scilab function
Syntax
int nb_params = nbInputArgument(void* _pvCtx)
int nb_params = Rhs
Arguments
- _pvCtx
Scilab environment pointer, pass in "pvApiCtx" provided by api_scilab.h
- 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 api_scilab.h to benefit from this function.
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 "api_scilab.h" #include "sciprint.h" int sci_myrhs(char * fname) { sciprint("The number of input parameters is %d\n", nbInputArgument); return 0; }
See also
- getNbInputArgument — A C gateway function which provides the number of input arguments present in the calling Scilab function
- sciprint — A C gateway function which displays standard messages to the user (same profile as the C printf function)
Report an issue | ||
<< Integer writing (Scilab gateway) | Low level functions | Pointer reading (Scilab gateway) >> |