Your code produces the expected output (no junk) on my linux box:
c = 1000
a : OPEN
b : close
c : 20
a :
b :
c : 0
Note, I think you need neither
Quote:
m1.a = '\0';
nor
Quote:
m1.b = '\0';
In any case, you should use the debugger in order to see what happens on your system.