#if M_RCSID
#ifndef lint
static char rcsID[] =
"$Header: /team/ps/sun_xcurses/archive/local_changes/xcurses/src/lib/"
"libxcurses/src/libc/xcurses/rcs/innwstr.c 1.2 1998/04/30 20:30:23 "
"cbates Exp $";
#endif
#endif
#include <private.h>
#undef innwstr
int
innwstr(wchar_t *wcs, int n)
{
int code;
code = winnwstr(stdscr, wcs, n);
return (code);
}
#undef mvinnwstr
int
mvinnwstr(int y, int x, wchar_t *wcs, int n)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = winnwstr(stdscr, wcs, n);
return (code);
}
#undef mvwinnwstr
int
mvwinnwstr(WINDOW *w, int y, int x, wchar_t *wcs, int n)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = winnwstr(w, wcs, n);
return (code);
}
#undef inwstr
int
inwstr(wchar_t *wcs)
{
int code;
code = winnwstr(stdscr, wcs, -1);
return ((code == ERR) ? ERR : OK);
}
#undef mvinwstr
int
mvinwstr(int y, int x, wchar_t *wcs)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = winnwstr(stdscr, wcs, -1);
return ((code == ERR) ? ERR : OK);
}
#undef mvwinwstr
int
mvwinwstr(WINDOW *w, int y, int x, wchar_t *wcs)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = winnwstr(w, wcs, -1);
return ((code == ERR) ? ERR : OK);
}
#undef winwstr
int
winwstr(WINDOW *w, wchar_t *wcs)
{
int code;
code = winnwstr(w, wcs, -1);
return ((code == ERR) ? ERR : OK);
}