I am getting segmentation faults in the PSET 6, the load function I have already searched google but I can't see where I've been wrong, I've been struggling with this function all day with no luck
I am posting the whole code because even though load() is the issue, I have defined some constants and structs at the very top
also, the hash function isn't very good but I'll improve it when the code is actually working, and I'll pick a better number than 100 buckets
I think the problem may have something to do with syntax, I've had lots today regarding arrays of nodes :/ my head says if I declare node* name[how_many_nodes] means every index name[index] has both a char[] and a next* pointer, am I wrong? because when I see other's code, they don't type name[index] -> next == NULL but name[index] == NULL (or = if assigning)
this is my code https://gist.github.com/anonymous/ca9c95f07e436289dd3a
thanks beforehand!