Learn to add your own C routine to SIP
sum = hello_sip(a,b)
"hello_sip" is a very simple example routine. The aim is that new developers know quickly how to add a new C-language implemented function to SIP.
bthrough a C routine.
The following files in the SIP sourcecode tree are related to the implementation of hello_sip:
src/hello_int.c -- interfaces C to Scilab config/libsip_build.sce -- specifies the interface source files and scilab name; this script is ran by Scilab to compile the interface C routines into a shared library. From AnImaL (aminal.sourceforge.net), animal/hello.c -- routine that returns a+b animal/hello.h -- header with the prototype of hello animal/animal.h general header for the internal C library