Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - 日本語

Scilab 5.5.0
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 > Low level functions > nbInputArgument (Scilab gateway)

nbInputArgument (Scilab gateway)

A C gateway function which provides the number of input arguments present in the calling Scilab function

Calling Sequence

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 — Scilab関数コール時に入力引数の数を調べるCゲートウェイ関数
  • sciprint — ユーザに標準メッセージを出力するCゲートウェイ関数 (C printf関数と同じプロファイル)
Report an issue
<< 文字列の書き込み (Scilab ゲートウェイ) Low level functions optionals >>

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:
Fri Apr 11 14:19:09 CEST 2014