I am doing a proj for class. the point is to make some sort function and let them have at. The problem is I am having issues with malloc. I though I understood the memory alloction stuff pretty well but when ever I try to run this on a file with alot of numbers (say 100000) I run into memory issues and the computer I am compiling on gets all upset. I have the sorts running and sorting the same number of element when I use a a size I define in the code.

So, my question is, is my problem a result of the way I am mallocing here or should I look at me calloc call in my sorts or is it the computer?

"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell