if i have a header fiel containing hte following..
Code:#define TERMINAL_1 0x01 #define TERMINAL_2 0x02 typedef struct data { int cookie; int monster; } D;
and if i ran two processes that ran this code.. how is it possible to set the first process (terminal1)'s cookie to 1, and the second process (terminal2)'s cookie to value 2.
how could i do that?
i've tried
but this doesnt work.. any ideas?Code:TERMINAL_1->cookie = 1;