1: # include "curses.ext" 2: 3: /* 4: * This routine adds a string starting at (_cury,_curx) 5: * 6: * 1/26/81 (Berkeley) @(#)addstr.c 1.1 7: */ 8: waddstr(win,str) 9: reg WINDOW *win; 10: reg char *str; 11: { 12: # ifdef DEBUG 13: fprintf(outf, "WADDSTR(\"%s\")\n", str); 14: # endif 15: while (*str) 16: if (waddch(win, *str++) == ERR) 17: return ERR; 18: return OK; 19: }