I apologize if im not using the right terms because this is sort of new to me.
I have a file called utils.h that has a structure with two ints:
typedef struct {
int pid;
int maxClientes;
int maxMedicos;
} Balcao;
and i have another file called balcao.c with the following code:
Balcao b;
b.pid = getpid();
I go to the terminal and insert
"Export maxClientes=20"
"Export maxMedicos=50"
"./balcao.0" (after having it compiled through gcc -o)
but when i try to print the variables it just prints out 0.
How do i capture the values from export and save them in file ?