Back to index

tetex-bin  3.0
Functions
lib_delch.c File Reference
#include <curses.priv.h>

Go to the source code of this file.

Functions

 wdelch (WINDOW *win)

Function Documentation

wdelch ( WINDOW win)

Definition at line 46 of file lib_delch.c.

{
    int code = ERR;

    T((T_CALLED("wdelch(%p)"), win));

    if (win) {
       NCURSES_CH_T blank = win->_nc_bkgd;
       struct ldat *line = &(win->_line[win->_cury]);
       NCURSES_CH_T *end = &(line->text[win->_maxx]);
       NCURSES_CH_T *temp2 = &(line->text[win->_curx + 1]);
       NCURSES_CH_T *temp1 = temp2 - 1;

       CHANGED_TO_EOL(line, win->_curx, win->_maxx);
       while (temp1 < end)
           *temp1++ = *temp2++;

       *temp1 = blank;

       _nc_synchook(win);
       code = OK;
    }
    returnCode(code);
}

Here is the call graph for this function: