S
sant.tarun
Hi,
I am facing some some problem in restricting the access of a
variable....
My question is described below.....
Let I have two different C source files 'a.c' and 'b.c'.
In the file 'a.c' there is a global variable declared 'int
GlobalVariable' and the same variable is extern in the file 'b.c'.
a.c b.c
----------------------- ---------------------------
|int Globalvariable; | |extern int Globalvariable;
|int main() | |
|{ | |Other funtions
|...... | |{
|} | |......
| | |}
|---------------------- ----------------------------
Now I want to restrict the access of that variable "Globalvariable" in
the file 'b.c' without using any semaphore.
Thanks and Regards,
Tarun Sant
I am facing some some problem in restricting the access of a
variable....
My question is described below.....
Let I have two different C source files 'a.c' and 'b.c'.
In the file 'a.c' there is a global variable declared 'int
GlobalVariable' and the same variable is extern in the file 'b.c'.
a.c b.c
----------------------- ---------------------------
|int Globalvariable; | |extern int Globalvariable;
|int main() | |
|{ | |Other funtions
|...... | |{
|} | |......
| | |}
|---------------------- ----------------------------
Now I want to restrict the access of that variable "Globalvariable" in
the file 'b.c' without using any semaphore.
Thanks and Regards,
Tarun Sant