I've been stuck with this for a while. I can't really figure out why I'm getting this message: I get the error message: "Segmentation fault (core dumped)" when I first compile gcc my_program.c and then run it ./a.out my_program.c
Main file: https://i.sstatic.net/usdsc.jpg Header file: https://i.sstatic.net/jJeuu.jpg
I can't for the life of me figure out where the problem is since C isn't really my friend and it doesn't tell me where the error is in the code.
It's probably line 37 in the main file. You should change printlist(node) to printnod(node). That ought to fix it.