Is it possible in some way to have separate namespaces between separate C files and have only those declarations that are in the header files be "public". For instance, the following example is how I would like it to work (but it doesn't).
/* foo.h */
/* foo.c */
In main the functions print_hello and print_world cannot be used because they have not been declared. But main also cannot define functions of the same name of its own without raising the error "multiple definition" (when main.c and foo.c and compiled together, which they have to be, right?).
/* main.c */
/* print_hello and print_world have not been
declared as far as main.c can see */
If anyone else has some ideas for how this might be accomplished please let me know. Or am I just stuck with a global namespace?