Right now, I'm getting a Segmentation Fault on the last 2 lines of this code. For the moment, I'm attempting to store x1 and y1 into array_ptr[num]->x and array_ptr[num]->y respectively.
I separated the functions with lines of "///".
I cannot access the nodes from main, it has to be from this function. I did have the function set up a different way, but I figured this would be much easier to read.
I hope I'm not leaving anything out...
Would it be possible to get some help with this? Thanks.