minix/lib/libcurses/waddstr.c

19 lines
466 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#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);
}