Scilab-Branch-5.3-GIT
- Aide Scilab
- Scilab
- Mots clés Scilab
- TMPDIR
- abort
- argn
- banner
- boolean
- break
- clear
- clearglobal
- comp
- debug
- errcatch
- errclear
- error
- exists
- exit
- external
- extraction
- getos
- getshell
- gstacksize
- ieee
- insertion
- inv_coeff
- iserror
- isglobal
- macr2tree
- matrices
- matrix
- mode
- mtlb_mode
- names
- null
- pause
- perl
- poly
- predef
- quit
- rational
- resume
- sciargs
- scilab
- stacksize
- startup
- symbols
- testmatrix
- type
- typename
- user
- varn
- what
- where
- whereami
- who
- whos
- with_atlas
- with_javasci
- with_macros_source
- with_pvm
- add_demo
- clearfun
- continue
- delbpt
- dispbpt
- edit
- error_table
- format
- funcprot
- funptr
- getdebuginfo
- getmd5
- getmemory
- getmodules
- getscilabmode
- getvariablesonstack
- getversion
- intppty
- lasterror
- macr2lst
- newfun
- readgateway
- setbpt
- ver
- warning
- who_user
- with_module
- with_texmacs
- with_tk
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
funptr
coding of primitives ( wizard stuff )
Calling Sequence
[numptr] = funptr(name)
Arguments
- name
a string, the name of a primitive
- numptr
the internal routine number of the primitive
Description
Utility function (for experts only) to get the internal routine number numptr
of the primitive 'name'
. numptr
is formed from the interface
number fun
and the routine number fin
of the primitive in its interface
by numptr = 1000*fun + fin
(fin < 1000). From numptr
you can get
the interface number fun = floor(numptr/1000)
which may be useful to link a
dynamical interface with arguments passed by reference (see example section).
Examples
// Suppose you want to load some codes via the dynamic // loading facilities offers by addinter. By default // arguments are passed by values but if you want to // pass them by reference you can do the following // (name being the scilab name of one of the interfaced // routines) : // // addinter(files,spnames,fcts) // args passed by values // num_interface = floor(funptr(name)/1000) // intppty(num_interface) // args now passed by reference // // Note that if you enter the following // // intppty() // // you will see all the interfaces working by reference
See Also
<< funcprot | Scilab | getdebuginfo >> |