. use library function to parse memory string
[minix3.git] / lib / curses / waddstr.c
blobb32bbb33193e3eed580ef36261ab7330690d4c23
1 #include <curses.h>
2 #include "curspriv.h"
4 /****************************************************************/
5 /* Waddstr() inserts string 'str' at the current cursor posi- */
6 /* Tion in window 'win', and takes any actions as dictated by */
7 /* The characters. */
8 /****************************************************************/
10 int waddstr(win, str)
11 WINDOW *win;
12 char *str;
14 while (*str) {
15 if (waddch(win, *str++) == ERR) return(ERR);
17 return(OK);