4 /****************************************************************/
5 /* Wclrtoeol() fills the half of the cursor line to the right */
6 /* Of the cursor in window 'win' with blanks. */
7 /****************************************************************/
12 int *maxx
, *ptr
, *end
, y
, x
, minx
, blank
;
16 blank
= ' ' | (win
->_attrs
& ATR_MSK
);
18 end
= &win
->_line
[y
][win
->_maxx
];
20 maxx
= &win
->_line
[y
][x
];
21 for (ptr
= maxx
; ptr
<= end
; ptr
++) {
24 if (minx
== _NO_CHANGE
) minx
= ptr
- win
->_line
[y
];
29 if (minx
!= _NO_CHANGE
) {
30 if (win
->_minchng
[y
] > minx
|| win
->_minchng
[y
] == _NO_CHANGE
)
31 win
->_minchng
[y
] = minx
;
32 if (win
->_maxchng
[y
] < maxx
- win
->_line
[y
])
33 win
->_maxchng
[y
] = maxx
- win
->_line
[y
];