[Scilab-users] Call C function
pepe
peter.balazovic at yahoo.com
Mon Feb 4 18:44:28 CET 2013
Hello all,
I used this function to be run under scilab, it does not calculate the '*c'
correcly. Can you please help how to use a such a funtion or how to
correctly run C function within scilab?
Thanks,
Pete
void ext1c(double *c,double a, double b)
{
*c=a+b;
}
mputl(f1,'fun1.c')
ilib_for_link('ext1c','fun1.c',[],"c")
exec loader.sce
//using the new primitive
a=1.0;b=2.9;z=0;
z=call('ext1c',a,2,'d',b,3,'d','out',[1,1],1,'d');
--
View this message in context: http://mailinglists.scilab.org/Call-C-function-tp4025871.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list