I've to build a static library, with some predefined functions and I need also some auxiliary functions.
A requirement is: Your library may not provide any global symbols other than function names.
I understood that the functions should only be available within one module of the library. This means that the functions should be static. How can I declare static functions in a header?
I've found a solution for inline functions in this topic: function used but not defined "If they are used in multiple C files, declare them static and have their definition in an included header file. That allows all .c files that include that header to have their own private definition of the function, which allows the compiler to inline it. Lone static function prototypes make little to no sense in a header file that will be used by multiple source files, since their actual definitions will be missing." But how does that work with normal functions?