#if M_RCSID
#ifndef lint
static char rcsID[] = "$Header: /rd/src/libc/xcurses/rcs/getnstr.c 1.1 "
"1995/06/06 19:11:25 ant Exp $";
#endif
#endif
#include <private.h>
#undef getnstr
int
getnstr(char *str, int n)
{
int code;
code = wgetnstr(stdscr, str, n);
return (code);
}
#undef mvgetnstr
int
mvgetnstr(int y, int x, char *str, int n)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = wgetnstr(stdscr, str, n);
return (code);
}
#undef mvwgetnstr
int
mvwgetnstr(WINDOW *w, int y, int x, char *str, int n)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = wgetnstr(w, str, n);
return (code);
}
#undef getstr
int
getstr(char *str)
{
int code;
code = wgetnstr(stdscr, str, -1);
return (code);
}
#undef mvgetstr
int
mvgetstr(int y, int x, char *str)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = wgetnstr(stdscr, str, -1);
return (code);
}
#undef mvwgetstr
int
mvwgetstr(WINDOW *w, int y, int x, char *str)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = wgetnstr(w, str, -1);
return (code);
}
#undef wgetstr
int
wgetstr(WINDOW *w, char *str)
{
int code;
code = wgetnstr(w, str, -1);
return (code);
}