Passing file content into memory is faulty. I have tried over and over and I am a bit stuck :   
I am wondering why while I think I make the function call to load appropriately,
it seems that fread cannot read into my chunk of memory correctly and so it creates a segmentation fault[in load function]!Please point me to the right approach

The link to the code is https://www.onlinegdb.com/BJiHlFwUZ

Thank you
