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

Function wclrtoeol

Utilities/cmpdcurses/pdcurses/clear.c:53–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51**man-end****************************************************************/
52
53int 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
83int clrtoeol(void)
84{

Callers 9

waddchFunction · 0.85
winschFunction · 0.85
clrtoeolFunction · 0.85
wclrtobotFunction · 0.85
Insert_StringFunction · 0.85
FE_New_LineFunction · 0.85
FE_Delete_WordFunction · 0.85
FE_Clear_To_End_Of_LineFunction · 0.85

Calls 1

PDC_syncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…