XCOS - I am looking for a tuto explaining how to create its own block in C language

I need to create a custom block from C code. How can I do this?

SCILAB built-in help is unuseful. However, I found a 25-page tutorial on the net dating back to 2009, written by Phil Schmidt. It talks about SCICOS, which I imagine is the ancestor of XCOS. It seems complex and a bit old-fashioned, so I’d prefer to work on a simple, concrete example, didactic enough to get me started.

Does anyone have such an example to hand?

Here is the link to the Phil Schmidt tutorial:

http://www.scicos.org/ScicosCBlockTutorial.pdf

Thanks in advance for your help.