Hi everyone,
I'm writing a program in C99 that is already more than 30 files after two days of coding. I put all my function definitions in .c files, usually one or a few functions per file. Any functions or variables that are only called from within that file I declare 'static'. Any functions or variables that should be known to other translation units, I copy the function declaration to a .h file, put an include guard on it, and then #include "Blah.h" in whichever other .c file needs to know about the external function/variables.
Now I think the variable declarations need to be 'extern' or else they'll end up being defined more than once.
My question is: Should the function declarations be allowed to sit as declarations, or should I 'extern' them ?
Richard