I have two structures, with values that should compute a pondered average, like this simplified version:
typedef struct { int v_move, v_read, v_suck, v_flush, v_nop, v_call; } values; typedef struct { int qtt_move, qtt_read, ...
For the union declaration below
union a { int i; char ch[2]; }; union a u; u.ch[0] = 3; u.ch[1] = 2;
i
ch