| |||||||||||||
Declaring a static module Description Declaring a static module (the module is embedded in the
program instead of being a dso file) and initializing
an array from data stored in the C program. The same functionality can be obtained by using I/O drivers instead of a static module (see second version of the program in file mmstatdsoio.c). Further explanation of this example: 'Mosel Native Interface User Guide', Chapter 6 Defining a static module
Source Files By clicking on a file name, a preview is opened at the bottom of this page.
Data Files meminit.mos (!******************************************************* * Mosel Example Problems * * ====================== * * * * file meminit.mos * * ```````````````` * * Example for the use of the Mosel language * * * * * * (c) 2008 Fair Isaac Corporation * * author: Y. Colombani, 2002 * *******************************************************!) model testinit uses "meminit" parameters MEMDAT='' ! memory location of data MEMSIZ=0 ! size of the data block (nb of integers) end-parameters declarations a:array(1..20) of integer end-declarations writeln("Data located at ",MEMDAT," contains ",MEMSIZ," integers") meminit(a,MEMDAT,MEMSIZ) writeln("a=",a) end-model | |||||||||||||
© Copyright 2024 Fair Isaac Corporation. |