I need 2 dynamically create an array. occasionally this can mean my program is trying 2 create char arrays of 100+ million!!!
This causes segmentation faults. Is it possible to either prevent the segmentation faults by freeing the memory befor hand? or to capture and recover from the error?
Im pretty new to C so i appologise in advance if this a stupid question.