ext8c.c

Go to the documentation of this file.
00001 /* Copyright Inria/Enpc */
00002 #include "stack-c.h"
00003 
00004 /****************************************
00005  *     an example with  GetMatrixptr 
00006  *     -->param=[1,2,3];         
00007  *     -->link('ext8c.o','ext8c','C');     
00008  *     -->y=call('ext8c','out',size(param),1,'d');
00009  ****************************************/
00010 
00011 int ext8c(double *y)
00012 {
00013   static int m, n, lp,i;
00014   GetMatrixptr("param", &m, &n, &lp);
00015   /* param can be changed */
00016   *stk(lp)=18.0;
00017   /* param can be read */
00018   for (i=0; i < m*n ; i++ ) y[i] = (*stk(lp+i));
00019   return 0;
00020 }

Generated on Sun Mar 4 15:03:57 2007 for Scilab [trunk] by  doxygen 1.5.1