L
luc wastiaux
Hello,
I need to share a global variable between functions, and for clarity
reasons, my code is split in different .c files that each compile into a
..o (object) which in turn are compiled together to form an executable.
What would be a good place to declare my global variable ? Can I put in
in a .h file that gets #included in all the .c's, (athough protected
against double inclusion) ?
thanks.
I need to share a global variable between functions, and for clarity
reasons, my code is split in different .c files that each compile into a
..o (object) which in turn are compiled together to form an executable.
What would be a good place to declare my global variable ? Can I put in
in a .h file that gets #included in all the .c's, (athough protected
against double inclusion) ?
thanks.