Make a block S-function from C fonction