minix/lib/curses/waddstr.c
2005-04-21 14:53:53 +00:00

19 lines
466 B
C
Executable file

#include <curses.h>
#include "curspriv.h"
/****************************************************************/
/* Waddstr() inserts string 'str' at the current cursor posi- */
/* Tion in window 'win', and takes any actions as dictated by */
/* The characters. */
/****************************************************************/
int waddstr(win, str)
WINDOW *win;
char *str;
{
while (*str) {
if (waddch(win, *str++) == ERR) return(ERR);
}
return(OK);
}