/* * mvwaddbytes -- * Add the characters to the given window at the location given. */ int mvwaddbytes(WINDOW *win, int y, int x, const char *bytes, int count) { if (wmove(win, y, x) == ERR) return ERR; return __waddbytes(win, bytes, count, 0); }
int __waddch(WINDOW *win, __LDATA *dp) { char buf[2]; buf[0] = dp->ch; return (__waddbytes(win, buf, 1, dp->attr & __STANDOUT)); }
/* * waddbytes -- * Add the character to the current position in the given window. */ int waddbytes(WINDOW *win, const char *bytes, int count) { return __waddbytes(win, bytes, count, 0); }
/* * addbytes -- * Add the character to the current position in stdscr. */ int addbytes(const char *bytes, int count) { return __waddbytes(stdscr, bytes, count, 0); }