Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.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 > legacy > Scilab Gateway API > Lhs (deprecated)

Lhs (deprecated)

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

Syntax

nb_params Lhs

Arguments

nb_params

the number of output arguments present in the calling Scilab function

Description

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

Note: Lhs means Left 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 gateway function can take several output arguments and prints in the Scilab console the integer corresponding to the number of output arguments detected in the calling Scilab function.

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

int sci_mylhs(char * fname)
{
  sciprint("The number of output arguments is %d\n", Lhs);

  return 0;
}

See also

  • getNbOutputArgument — Scilab関数コール時に出力引数の数を調べるCゲートウェイ関数
  • getNbInputArgument — Scilab関数コール時に入力引数の数を調べるCゲートウェイ関数
  • sciprint — ユーザに標準メッセージを出力するCゲートウェイ関数 (C printf関数と同じプロファイル)
  • Rhs — A C gateway function which provides the number of input arguments present in the calling Scilab function This function is obsolete.
Report an issue
<< CheckRhs (deprecated) Scilab Gateway API LhsVar (deprecated) >>

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:
Thu Feb 14 15:02:37 CET 2019