source: trunk/minix/lib/curses/waddstr.c@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 466 bytes
Line 
1#include <curses.h>
2#include "curspriv.h"
3
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/****************************************************************/
9
10int waddstr(win, str)
11WINDOW *win;
12char *str;
13{
14 while (*str) {
15 if (waddch(win, *str++) == ERR) return(ERR);
16 }
17 return(OK);
18}
Note: See TracBrowser for help on using the repository browser.