MCPcopy Create free account
hub / github.com/Kitware/CMake / winsertln

Function winsertln

Utilities/cmpdcurses/pdcurses/deleteln.c:152–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152int 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
186int insertln(void)
187{

Callers 6

winsdellnFunction · 0.85
insertlnFunction · 0.85
mvinsertlnFunction · 0.85
mvwinsertlnFunction · 0.85
FE_New_LineFunction · 0.85
FE_Insert_LineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…