Back to index

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

Go to the source code of this file.

Functions

 win_wch (WINDOW *win, cchar_t *wcval)

Function Documentation

win_wch ( WINDOW win,
cchar_t *  wcval 
)

Definition at line 45 of file lib_in_wch.c.

{
    int row, col;
    int code = OK;

    TR(TRACE_CCALLS, (T_CALLED("win_wch(%p,%p)"), win, wcval));
    if (win != 0
       && wcval != 0) {
       getyx(win, row, col);

       *wcval = win->_line[row].text[col];
    } else {
       code = ERR;
    }
    TR(TRACE_CCALLS, (T_RETURN("%d"), code));
    return (code);
}