#if M_RCSID
#ifndef lint
static char rcsID[] = "$Header: /rd/src/libc/xcurses/rcs/addnstr.c 1.3 "
"1995/07/07 17:59:11 ant Exp $";
#endif
#endif
#include <private.h>
#undef addnstr
int
addnstr(const char *str, int n)
{
int code;
code = waddnstr(stdscr, str, n);
return (code);
}
#undef mvaddnstr
int
mvaddnstr(int y, int x, const char *str, int n)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = waddnstr(stdscr, str, n);
return (code);
}
#undef mvwaddnstr
int
mvwaddnstr(WINDOW *w, int y, int x, const char *str, int n)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = waddnstr(w, str, n);
return (code);
}
#undef addstr
int
addstr(const char *str)
{
int code;
code = waddnstr(stdscr, str, -1);
return (code);
}
#undef mvaddstr
int
mvaddstr(int y, int x, const char *str)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = waddnstr(stdscr, str, -1);
return (code);
}
#undef mvwaddstr
int
mvwaddstr(WINDOW *w, int y, int x, const char *str)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = waddnstr(w, str, -1);
return (code);
}
#undef waddstr
int
waddstr(WINDOW *w, const char *str)
{
int code;
code = waddnstr(w, str, -1);
return (code);
}