I am writing a function where it reads in the files and store characters in a 2 dimensional array. I want this to be a global variable as I want multiple functions outside of the main method to be able to access it, but the dimensions cannot be set until after I've read the file, so what would the be approach in doing this. I've read a fair few posts in stack overflow before asking this question, but I'm still confused/ the questions don't help me with this specific problem.
(I am restricted to using the libraries/functions available with ANSI c)