Code:// new code down below
Hope the above isnt too much code to put here, but after I try to exit the loop early and return the structure in the getData function, the program just stalls. Can somebody please point me in the right direction.
p.s is the way im deleting p the right way to delete the allocated array?