home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------
- *
- * waddstr.c
- *
- * copyright (c) 1987,88,89,90 J. Alan Eldridge
- *
- * adds a string to a window at the current cursor position
- *
- *----------------------------------------------------------*/
-
- #include "curses.h"
-
- waddstr(win, str)
- WINDOW *win;
- char *str;
- {
- while (*str)
- if (waddch(win, *str++) == ERR)
- break;
- return *str ? ERR : OK;
- }
-