1 void adjust_xy (short *, short *); 2 3 struct adjust_template 4 { 5 short kx_x; 6 short kx_y; 7 }; 8 9 static struct adjust_template adjust = {1, 1}; 10 main()11main () 12 { 13 short x = 1, y = 1; 14 15 adjust_xy (&x, &y); 16 17 if (x != 2) 18 abort (); 19 20 exit (0); 21 } 22 23 void adjust_xy(x,y)24adjust_xy (x, y) 25 short *x; 26 short *y; 27 { 28 *x = adjust.kx_x * *x + adjust.kx_y * *y; 29 } 30