#if M_RCSID
#ifndef lint
static char rcsID[] =
"$Header: /team/ps/sun_xcurses/archive/local_changes/xcurses/src/lib/"
"libxcurses/src/libc/xcurses/rcs/innstr.c 1.2 1998/04/30 20:30:22 "
"cbates Exp $";
#endif
#endif
#include <private.h>
#undef innstr
int
innstr(char *s, int n)
{
int code;
code = winnstr(stdscr, s, n);
return (code);
}
#undef mvinnstr
int
mvinnstr(int y, int x, char *s, int n)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = winnstr(stdscr, s, n);
return (code);
}
#undef mvwinnstr
int
mvwinnstr(WINDOW *w, int y, int x, char *s, int n)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = winnstr(w, s, n);
return (code);
}
#undef instr
int
instr(char *s)
{
int code;
code = winnstr(stdscr, s, -1);
return ((code == ERR) ? ERR : OK);
}
#undef mvinstr
int
mvinstr(int y, int x, char *s)
{
int code;
if ((code = wmove(stdscr, y, x)) == OK)
code = winnstr(stdscr, s, -1);
return ((code == ERR) ? ERR : OK);
}
#undef mvwinstr
int
mvwinstr(WINDOW *w, int y, int x, char *s)
{
int code;
if ((code = wmove(w, y, x)) == OK)
code = winnstr(w, s, -1);
return ((code == ERR) ? ERR : OK);
}
#undef winstr
int
winstr(WINDOW *w, char *s)
{
int code;
code = winnstr(w, s, -1);
return ((code == ERR) ? ERR : OK);
}