/* * mvwaddchnstr -- * Add a string of at most n characters to the given window * starting at (y, x). */ int mvwaddchnstr(WINDOW *win, int y, int x, const chtype *chstr, int n) { if (wmove(win, y, x) == ERR) return ERR; return waddchnstr(win, chstr, n); }
int mvwaddchnstr(WINDOW *win, int y, int x, const chtype *ch, int n) { PDC_LOG(("mvwaddchnstr() - called: y %d x %d n %d \n", y, x, n)); if (wmove(win, y, x) == ERR) return ERR; return waddchnstr(win, ch, n); }
int mvwaddchstr(WINDOW *win, int y, int x, const chtype *ch) { PDC_LOG(("mvwaddchstr() - called:\n")); if (wmove(win, y, x) == ERR) return ERR; return waddchnstr(win, ch, -1); }
int mvaddchnstr(int y, int x, const chtype *ch, int n) { PDC_LOG(("mvaddchnstr() - called: y %d x %d n %d\n", y, x, n)); if (move(y, x) == ERR) return ERR; return waddchnstr(stdscr, ch, n); }
/* * addchstr -- * Add a string to stdscr starting at (_cury, _curx). */ int addchstr(const chtype *chstr) { return waddchnstr(stdscr, chstr, -1); }
int waddchstr(WINDOW *win, const chtype *ch) { PDC_LOG(("waddchstr() - called: win=%p\n", win)); return waddchnstr(win, ch, -1); }
/* * addchnstr -- * Add a string (at most n characters) to stdscr starting * at (_cury, _curx). If n is negative, add the entire string. */ int addchnstr(const chtype *chstr, int n) { return waddchnstr(stdscr, chstr, n); }
int addchnstr(const chtype *ch, int n) { PDC_LOG(("addchnstr() - called\n")); return waddchnstr(stdscr, ch, n); }
NCURSES_EXPORT(int) (mvwaddchstr) (WINDOW * a1, int a2, int a3, const chtype * z) { T((T_CALLED("mvwaddchstr(%p,%d,%d,%p)"), (const void *)a1, a2, a3, (const void *)z)); returnCode((wmove(a1,a2,a3) == (-1) ? (-1) : waddchnstr(a1,z,-1))); }
/* * waddchstr -- * Add a string to the given window starting at (_cury, _curx). */ int waddchstr(WINDOW *win, const chtype *chstr) { return waddchnstr(win, chstr, -1); }
int mvaddchnstr(int y, int x, chtype *s, int n) { return (wmove(stdscr, y, x) == ERR ? ERR : waddchnstr(stdscr, s, n)); }
int wadd_wchnstr(WINDOW *win, const cchar_t *wch, int n) { PDC_LOG(("wadd_wchnstr() - called: win=%p n=%d\n", win, n)); return waddchnstr(win, wch, n); }
NCURSES_EXPORT(int) (addchstr) (const chtype * z) { T((T_CALLED("addchstr(%p)"), (const void *)z)); returnCode(waddchnstr(stdscr,(z),-1)); }
NCURSES_EXPORT(int) (addchnstr) (const chtype * a1, int z) { T((T_CALLED("addchnstr(%p,%d)"), (const void *)a1, z)); returnCode(waddchnstr(stdscr,(a1),(z))); }
int chkr_waddchnstr(WINDOW *win,chtype *ch,int n) { CHECK_WIN(win); stubs_chkr_check_addr(ch, sizeof (chtype) * n, CHKR_MW, "ch"); return(waddchnstr(win,ch,n)); }
int waddchstr(WINDOW *win, chtype *str) { return (waddchnstr(win, str, -1)); }
NCURSES_EXPORT(int) (waddchstr) (WINDOW * a1, const chtype * z) { T((T_CALLED("waddchstr(%p,%p)"), (const void *)a1, (const void *)z)); returnCode(waddchnstr(a1,z,-1)); }
EIF_INTEGER c_ecurses_waddchnstr (EIF_POINTER w, EIF_POINTER chs, EIF_INTEGER n) { return waddchnstr( ((WINDOW *) w) , (chtype *)chs, (int) n) ; };
NCURSES_EXPORT(int) (mvaddchstr) (int a1, int a2, const chtype * z) { T((T_CALLED("mvaddchstr(%d,%d,%p)"), a1, a2, (const void *)z)); returnCode((wmove(stdscr,a1,a2) == (-1) ? (-1) : waddchnstr(stdscr,z,-1))); }