Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - English

Change language to:
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 help >> API Scilab > Scilab Gateway API > istk

istk

Return a pointer to an integer to access data stored at a given position in the Scilab memory

Calling Sequence

istk(l_stack_pos)

Arguments

l_stack_pos

the position in the Scilab memory of the parameter to be accessed (input argument)

Description

This C gateway function returns a pointer to an integer to access data stored at a given position in the Scilab memory.

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

#include <stack-c.h>

int sci_myones(char * fname)
{
  int m_row, n_col, l_pos;
  
  m_row = 1; n_col = 1; // We create a scalar
  CreateVar(1, MATRIX_OF_INTEGER_DATATYPE, &m_row, &n_col, &l_pos);

  *istk(l_pos) = 1; // We store the value 1 in the memory allocated for output
                     // parameter 1

  LhsVar(1) = 1;

  return 0;
}

See Also

  • Scilab C Type — the C types available in a C gateway
  • CreateVar — a C gateway function which allows to create a new Scilab parameter
  • LhsVar — a C gateway function which specifies which parameters created inside the C gateway will be returned as an output argument into Scilab.
<< get_optionals Scilab Gateway API sci_types >>

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 Mar 03 10:59:47 CET 2011