I'm having hard time figuring out how to split my code into 2 files.
I currently have 2 files in the project: Test.c and Font.c, Font.c contains a lot of const variables and couple of pointer arrays.
I want to be able to read the data in Font.c from the Test.c file without re-declaring everything as extern.
Generally, what you would do is have a .h file that declares the stuff in the font.c file that you want to view from other files. Most .c files will have a sister .h file associated with it in general. You then include the header file in your c file.
I wanted to separate the two files so that font.c would have all the data and functions to handle the font drawing, it has an array for each char in the font and a pointer array.
If i'd declare all these arrays as extern they will take a lot of space (visually).
Anyways, if i'll rename the file to .h can I just #include it ?
You can do that, but I consider it to be bad programming practice. Declaring everything as external will not take up a lot of visual space if you do it in a header file. Keep your font.c file the way it is. Make a font.h file and include the following lines of code in it (modified of course to match your array, variable, and function names)