mvscanw(int y, int x, const char *fmt, ...) { int code; va_list ap; va_start(ap, fmt); code = (move(y, x) == OK) ? vw_scanw(stdscr, fmt, ap) : ERR; va_end(ap); return (code); }
mvwscanw(WINDOW *win, int y, int x, const char *fmt, ...) { int code; va_list ap; va_start(ap, fmt); code = (wmove(win, y, x) == OK) ? vw_scanw(win, fmt, ap) : ERR; va_end(ap); return (code); }
/*#DOC*/ int view_scanf(View v, char* fmt, ...) { va_list ap; int ret; viewP_cbreak(FALSE); va_start(ap, fmt); ret = vw_scanw(view_win(v), fmt, ap); va_end(ap); return ret; }
int wscanw(WINDOW *w, char *fmt, ...) { int code; va_list ap; va_start(ap, fmt); code = vw_scanw(w, fmt, ap); va_end(ap); return (code); }
int scanw(char *fmt, ...) { int code; va_list ap; va_start(ap, fmt); code = vw_scanw(stdscr, fmt, ap); va_end(ap); return (code); }
wscanw(WINDOW *win, const char *fmt, ...) { int code; va_list ap; T(("wscanw(%p,\"%s\",...) called", (void *) win, fmt)); va_start(ap, fmt); code = vw_scanw(win, fmt, ap); va_end(ap); return (code); }
scanw(const char *fmt, ...) { int code; va_list ap; T(("scanw(\"%s\",...) called", fmt)); va_start(ap, fmt); code = vw_scanw(stdscr, fmt, ap); va_end(ap); return (code); }
int mvwscanw(WINDOW *w, int y, int x, char *fmt, ...) { int code; va_list ap; va_start(ap, fmt); if ((code = wmove(w, y, x)) == OK) code = vw_scanw(w, fmt, ap); va_end(ap); return (code); }
int mvscanw(int y, int x, char *fmt, ...) { int code; va_list ap; va_start(ap, fmt); if ((code = wmove(stdscr, y, x)) == OK) code = vw_scanw(stdscr, fmt, ap); va_end(ap); return (code); }
/* * The use of the vwscanw() and the vw_scanw() functions in the same file will not work, due to * the requirement to include varargs.h and stdarg.h which both contain definitions of va_list. */ int vwscanwDotsShell( WINDOW * win, char * fmt, ... ) { int res; #if 0 // #error GCC (version >= 4.0) no longer implements <varargs.h>. va_list argList; va_start( argList, fmt ); res = vwscanw( win, fmt, argList ); va_end( argList ); #else va_list argList; va_start( argList, fmt ); res = vw_scanw( win, fmt, argList ); va_end( argList ); #endif return res; }
int scanw(const char *fmt, ...) { int code; va_list ap; #ifdef M_CURSES_TRACE __m_trace("scanw(%p = \"%s\", ...)", fmt, fmt); #endif va_start(ap, fmt); code = vw_scanw(stdscr, fmt, ap); va_end(ap); return __m_return_code("scanw", code); }
int wscanw(WINDOW *w, const char *fmt, ...) { int code; va_list ap; #ifdef M_CURSES_TRACE __m_trace("wscanw(%p, %p = \"%s\", ...)", w, fmt, fmt); #endif va_start(ap, fmt); code = vw_scanw(w, fmt, ap); va_end(ap); return __m_return_code("wscanw", code); }
int mvwscanw(WINDOW *w, int y, int x, const char *fmt, ...) { int code; va_list ap; #ifdef M_CURSES_TRACE __m_trace("mvwscanw(%p, %d, %d, %p = \"%s\", ...)", w, y, x, fmt, fmt); #endif va_start(ap, fmt); if ((code = wmove(w, y, x)) == OK) code = vw_scanw(w, fmt, ap); va_end(ap); return __m_return_code("mvwscanw", code); }