B
Bart C
Suppose I have two modules A and B, and I want them to share the same
variable X.
X might be defined in A but I want to declare it in B as well.
How would I do that in C language?
For functions, I can define it in A and a declaration can be put into a
shared header. But how do I do a declaration of a variable that is defined
elsewhere?
(I can do a workaround using pointers but I'd like direct access)
Thanks, Bart
variable X.
X might be defined in A but I want to declare it in B as well.
How would I do that in C language?
For functions, I can define it in A and a declaration can be put into a
shared header. But how do I do a declaration of a variable that is defined
elsewhere?
(I can do a workaround using pointers but I'd like direct access)
Thanks, Bart