| 150 | } |
| 151 | |
| 152 | int winsertln(WINDOW *win) |
| 153 | { |
| 154 | chtype blank, *temp, *end; |
| 155 | int y; |
| 156 | |
| 157 | PDC_LOG(("winsertln() - called\n")); |
| 158 | |
| 159 | if (!win) |
| 160 | return ERR; |
| 161 | |
| 162 | /* wrs (4/10/93) account for window background */ |
| 163 | |
| 164 | blank = win->_bkgd; |
| 165 | |
| 166 | temp = win->_y[win->_maxy - 1]; |
| 167 | |
| 168 | for (y = win->_maxy - 1; y > win->_cury; y--) |
| 169 | { |
| 170 | win->_y[y] = win->_y[y - 1]; |
| 171 | win->_firstch[y] = 0; |
| 172 | win->_lastch[y] = win->_maxx - 1; |
| 173 | } |
| 174 | |
| 175 | win->_y[win->_cury] = temp; |
| 176 | |
| 177 | for (end = &temp[win->_maxx - 1]; temp <= end; temp++) |
| 178 | *temp = blank; |
| 179 | |
| 180 | win->_firstch[win->_cury] = 0; |
| 181 | win->_lastch[win->_cury] = win->_maxx - 1; |
| 182 | |
| 183 | return OK; |
| 184 | } |
| 185 | |
| 186 | int insertln(void) |
| 187 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…