Can some tell me why I am seg faulting in this simple C program?
- by user299648
I keep on getting seg faulted after I end my first for loop, and for the life of me I don't why.
The file I'm scanning is just 18 strings in 18 lines.
I thinks the problem is the way I'm mallocing the double pointer called picks, but I don't know exactly why.
I'm am only trying to scanf strings that are less than 15 chars long, so I don't see the…