|
|
1.1 root 1: # include "curses.ext"
2: /* @(#) addstr.c: 1.1 10/15/83 (1.3 7/17/82) */
3:
4: /*
5: * This routine adds a string starting at (_cury,_curx)
6: *
7: * 1/26/81 (Berkeley) @(#)addstr.c 1.1
8: */
9: waddstr(win,str)
10: register WINDOW *win;
11: register char *str;
12: {
13: # ifdef DEBUG
14: if(outf)
15: {
16: if( win == stdscr )
17: {
18: fprintf(outf, "WADDSTR(stdscr, ");
19: }
20: else
21: {
22: fprintf(outf, "WADDSTR(%o, ", win);
23: }
24: fprintf(outf, "\"%s\")\n", str);
25: }
26: # endif DEBUG
27: while( *str )
28: {
29: if( waddch( win, ( chtype ) *str++ ) == ERR )
30: {
31: return ERR;
32: }
33: }
34: return OK;
35: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.