| 51 | **man-end****************************************************************/ |
| 52 | |
| 53 | int wclrtoeol(WINDOW *win) |
| 54 | { |
| 55 | int x, y, minx; |
| 56 | chtype blank, *ptr; |
| 57 | |
| 58 | PDC_LOG(("wclrtoeol() - called: Row: %d Col: %d\n", |
| 59 | win->_cury, win->_curx)); |
| 60 | |
| 61 | if (!win) |
| 62 | return ERR; |
| 63 | |
| 64 | y = win->_cury; |
| 65 | x = win->_curx; |
| 66 | |
| 67 | /* wrs (4/10/93) account for window background */ |
| 68 | |
| 69 | blank = win->_bkgd; |
| 70 | |
| 71 | for (minx = x, ptr = &win->_y[y][x]; minx < win->_maxx; minx++, ptr++) |
| 72 | *ptr = blank; |
| 73 | |
| 74 | if (x < win->_firstch[y] || win->_firstch[y] == _NO_CHANGE) |
| 75 | win->_firstch[y] = x; |
| 76 | |
| 77 | win->_lastch[y] = win->_maxx - 1; |
| 78 | |
| 79 | PDC_sync(win); |
| 80 | return OK; |
| 81 | } |
| 82 | |
| 83 | int clrtoeol(void) |
| 84 | { |
no test coverage detected
searching dependent graphs…