Scilab 5.3.0
      
      - Manuel Scilab
 - API Scilab
 - Scilab Gateway API
 - How to
 - CheckColumn
 - CheckDimProp
 - CheckDims
 - CheckLength
 - CheckLhs
 - CheckRhs
 - CheckRow
 - CheckSameDims
 - CheckScalar
 - CheckSquare
 - CheckVector
 - CreateListVarFrom
 - CreateListVarFromPtr
 - CreateVar
 - FindOpt
 - FirstOpt
 - GetListRhsVar
 - GetRhsVar
 - GetType
 - IsOpt
 - Lhs
 - LhsVar
 - NumOpt
 - OverLoad
 - Rhs
 - Scierror
 - Scilab C Types
 - get_optionals
 - istk
 - sci_types
 - sciprint
 - stk
 
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
stk
Return a pointer to a double to access data stored at a given position in the Scilab memory
Calling Sequence
stk(l_stack_pos)
Arguments
- l_stack_pos
 the position in the Scilab memory of the variable to be accessed (input argument)
Description
This C gateway function returns a pointer to a double 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_DOUBLE_DATATYPE, &m_row, &n_col, &l_pos); *stk(l_pos) = 1.0; // We store the value 1.0 in the area allocated by CreateVar LhsVar(1) = 1; // We set the parameter 1 created by CreateVar as an output parameter // of the gateway function return 0; }
See Also
| << sciprint | Scilab Gateway API | double >> |