next up previous contents index
Next: 6.3.1.2 Writing compatible code Up: 6.3.1 Using Intersci Previous: 6.3.1.0.7 Using lists as

   
6.3.1.1 C functions interfacing

The C function must be considered as a procedure i.e. its type must be void or the returned value must not be used.

The arguments of the C function must be considered as Fortran arguments i.e. they must be only pointers.

Moreover, the name of the C function must be recognized by Fortran. For that, the include file machine.h located in the directory <Scilab directory>/routines should be included in C functions and the macro C2F should be used.


next up previous contents index
Next: 6.3.1.2 Writing compatible code Up: 6.3.1 Using Intersci Previous: 6.3.1.0.7 Using lists as
Scilab Group