In timer.c I have
typedef struct Timer {
int startTicks;
int pausedTicks;
int paused;
int started;
} Timer;
void Init( Timer *t )
{
t->startTicks = 0;
t->pausedTicks = 0;
t->paused = 0;
t->started = 0;
}
What do i need to do in main.c to make use of this struct and functions in that file?
In general, .c files contain definitions and .h files contain declarations. A better approach would be to keep your definitions in a header: