I started making a large project in C, and I realized that I need some useful functions that I made in multiple .c files, but, I don't want the user of my files to be able to use those functions (or accidentally declare a function with the same name, and then use it)
I understand that if I want a function to be used in only one .c file, then I just make it static. So what do I need to do so that I can select which files can use my function, and which can't?
I understand that putting the static function in a header file wouldn't be good, because then the compiler would make a new copy of that function in each file that includes it.
Thanks for the help!
P.S. In c++ this would be done with namespaces right?