Back to index

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

Go to the source code of this file.

Functions

 printw (const char *fmt,...)
 wprintw (WINDOW *win, const char *fmt,...)
 mvprintw (int y, int x, const char *fmt,...)
 mvwprintw (WINDOW *win, int y, int x, const char *fmt,...)
 vwprintw (WINDOW *win, const char *fmt, va_list argp)

Function Documentation

mvprintw ( int  y,
int  x,
const char *  fmt,
  ... 
)

Definition at line 85 of file lib_printw.c.

{
    va_list argp;
    int code;

#ifdef TRACE
    va_start(argp, fmt);
    T((T_CALLED("mvprintw(%d,%d,%s%s)"),
       y, x, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
    va_end(argp);
#endif

    if ((code = move(y, x)) != ERR) {
       va_start(argp, fmt);
       code = vwprintw(stdscr, fmt, argp);
       va_end(argp);
    }
    returnCode(code);
}

Here is the call graph for this function:

mvwprintw ( WINDOW win,
int  y,
int  x,
const char *  fmt,
  ... 
)

Definition at line 106 of file lib_printw.c.

{
    va_list argp;
    int code;

#ifdef TRACE
    va_start(argp, fmt);
    T((T_CALLED("mvwprintw(%d,%d,%p,%s%s)"),
       y, x, win, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
    va_end(argp);
#endif

    if ((code = wmove(win, y, x)) != ERR) {
       va_start(argp, fmt);
       code = vwprintw(win, fmt, argp);
       va_end(argp);
    }
    returnCode(code);
}

Here is the call graph for this function:

Here is the caller graph for this function:

printw ( const char *  fmt,
  ... 
)

Definition at line 45 of file lib_printw.c.

{
    va_list argp;
    int code;

#ifdef TRACE
    va_start(argp, fmt);
    T((T_CALLED("printw(%s%s)"),
       _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
    va_end(argp);
#endif

    va_start(argp, fmt);
    code = vwprintw(stdscr, fmt, argp);
    va_end(argp);

    returnCode(code);
}

Here is the call graph for this function:

vwprintw ( WINDOW win,
const char *  fmt,
va_list  argp 
)

Definition at line 127 of file lib_printw.c.

{
    char *buf;
    int code = ERR;

    T((T_CALLED("vwprintw(%p,%s,%p)"),
       win, _nc_visbuf(fmt), argp));

    if ((buf = _nc_printf_string(fmt, argp)) != 0) {
       code = waddstr(win, buf);
    }
    returnCode(code);
}

Here is the call graph for this function:

Here is the caller graph for this function:

wprintw ( WINDOW win,
const char *  fmt,
  ... 
)

Definition at line 65 of file lib_printw.c.

{
    va_list argp;
    int code;

#ifdef TRACE
    va_start(argp, fmt);
    T((T_CALLED("wprintw(%p,%s%s)"),
       win, _nc_visbuf(fmt), _nc_varargs(fmt, argp)));
    va_end(argp);
#endif

    va_start(argp, fmt);
    code = vwprintw(win, fmt, argp);
    va_end(argp);

    returnCode(code);
}

Here is the call graph for this function:

Here is the caller graph for this function: