Re:When static makes your C code 10 times faster
by kevin_thibedeau on Sunday July 04, 2021 @04:05PM
(#27732219)
It also gives you a nice private namespace for the translation unit so you can confidently modify any of the static objects without concern for impacting external code.
I once had a gray beard chew me out over changing a function signature when revising things. I had to point out politely that it was static and that anyone who managed to link to the function had to be breaking a lot of rules to do so.
I once had a gray beard chew me out over changing a function signature when revising things. I had to point out politely that it was static and that anyone who managed to link to the function had to be breaking a lot of rules to do so.