Hi all,
I assume that the variables meant to be used within a library should be declared static so as to restrict there scope and prevent their access in the programs using the library.
Now if my library is being compiled from two c files and am using a global variable in both of them, is there a way to do this without declaring the variable extern? i.e I would like to use the variable in two c files and still have the its scope restricted to the library only. Is there a standard way to do this?
Thank you