First attempt for segmentsCross
Error in the maths
Test the function segmentsCross
Need free before all return NULL
segmentsCross: Check if the point is contained in the segments
You can enter the points to test for the segmentsCross