Code:
char file[11];
That uses 24 bytes. I am not happy about that when I will be having it in a struct array 20 * 80.

How do I create a dynamic array that starts of at a minimal size, and then allows me to allocate memory for the length of the filename specified?