Rev | Line | |
---|
[9] | 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 |
|
---|
| 10 | int waddstr(win, str)
|
---|
| 11 | WINDOW *win;
|
---|
| 12 | char *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.