about static

Posted By: tzw

about static - 05/07/11 14:25

hi guys. is lite_c can use "static" with vars & funcs that let'em only accessed by current file i think it's useful , can hide interfaces details & avoid names conflict .
Posted By: Myrkling

Re: about static - 05/07/11 14:41

In Lite-C the static modifier only has effect on local variables.

Static global variables compile, but act like non-static global variables. Static functions don't compile at all.
© 2024 lite-C Forums