when performing the init functions from within the c code , I get segmentation fault... when I know that it crushes when attaching the functions to the corresponding pointer