I\'ve come across some code that has a large static function in a header file and i\'m just curious when it is/is not ok to do this. For example, if many .c fil
.c
If the function has external linkage, it should be declared in a .h file.
If the function is static, and therefore has no external linkage, the function should only be declared in the .c file in which it is defined.
It is never OK to have a function defined in a header file.