View Single Post
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
Just to help debugging:

Always check the return value of malloc calls.

Have you tried writing a program that does just this operation? If not, do so.
 

The Following User Says Thank You to Joorin For This Useful Post: