I have an array that i want to make global, and i want to initialize in a function call. I want to first declare it without knowing it's size:
char str[];
and later initialize it:
str = char[size];
How can i do this? I'm very new to c and perhaps I'm going completely the wrong way here, any help would be greatly appreciated.