F
Fernan Bolando
I have been going through some of the tutorials on the internet
regarding coding styles in unix C programming. Most of the stuff I have
read do not prefer using global variables, But for multi-file programs
it is impossible not to have global variables.
I am trying to learn of the best way to check if I am mis-using global
variables. How do you guys know if there are to many global variables in
your programs? I am not trying to start a flame war on coding styles. I
just want to know how the more experienced programmers do it.
I usually just follow the Linux-Kernel Coding style, But in this case it
seems to be unclear to me.
thanks
,Fernan
regarding coding styles in unix C programming. Most of the stuff I have
read do not prefer using global variables, But for multi-file programs
it is impossible not to have global variables.
I am trying to learn of the best way to check if I am mis-using global
variables. How do you guys know if there are to many global variables in
your programs? I am not trying to start a flame war on coding styles. I
just want to know how the more experienced programmers do it.
I usually just follow the Linux-Kernel Coding style, But in this case it
seems to be unclear to me.
thanks
,Fernan