Back to index

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

Go to the source code of this file.

Functions

 vwscanw (WINDOW *win, NCURSES_CONST char *fmt, va_list argp)
 scanw (NCURSES_CONST char *fmt,...)
 wscanw (WINDOW *win, NCURSES_CONST char *fmt,...)
 mvscanw (int y, int x, NCURSES_CONST char *fmt,...)
 mvwscanw (WINDOW *win, int y, int x, NCURSES_CONST char *fmt,...)

Function Documentation

mvscanw ( int  y,
int  x,
NCURSES_CONST char *  fmt,
  ... 
)

Definition at line 85 of file lib_scanw.c.

{
    int code;
    va_list ap;

    va_start(ap, fmt);
    code = (move(y, x) == OK) ? vwscanw(stdscr, fmt, ap) : ERR;
    va_end(ap);
    return (code);
}

Here is the call graph for this function:

mvwscanw ( WINDOW win,
int  y,
int  x,
NCURSES_CONST char *  fmt,
  ... 
)

Definition at line 97 of file lib_scanw.c.

{
    int code;
    va_list ap;

    va_start(ap, fmt);
    code = (wmove(win, y, x) == OK) ? vwscanw(win, fmt, ap) : ERR;
    va_end(ap);
    return (code);
}

Here is the call graph for this function:

scanw ( NCURSES_CONST char *  fmt,
  ... 
)

Definition at line 57 of file lib_scanw.c.

{
    int code;
    va_list ap;

    T(("scanw(\"%s\",...) called", fmt));

    va_start(ap, fmt);
    code = vwscanw(stdscr, fmt, ap);
    va_end(ap);
    return (code);
}

Here is the call graph for this function:

vwscanw ( WINDOW win,
NCURSES_CONST char *  fmt,
va_list  argp 
)

Definition at line 46 of file lib_scanw.c.

{
    char buf[BUFSIZ];

    if (wgetnstr(win, buf, sizeof(buf) - 1) == ERR)
       return (ERR);

    return (vsscanf(buf, fmt, argp));
}

Here is the call graph for this function:

Here is the caller graph for this function:

wscanw ( WINDOW win,
NCURSES_CONST char *  fmt,
  ... 
)

Definition at line 71 of file lib_scanw.c.

{
    int code;
    va_list ap;

    T(("wscanw(%p,\"%s\",...) called", win, fmt));

    va_start(ap, fmt);
    code = vwscanw(win, fmt, ap);
    va_end(ap);
    return (code);
}

Here is the call graph for this function: