1 /* 2 * Copyright (c) 1981 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)addch.c 5.10 (Berkeley) 11/12/92"; 10 #endif /* not lint */ 11 12 #include <curses.h> 13 14 /* 15 * waddch -- 16 * Add the character to the current position in the given window. 17 * 18 */ 19 20 int 21 waddch(win, ch) 22 WINDOW *win; 23 int ch; 24 { 25 static __LDATA buf; 26 27 buf.ch = ch; 28 buf.attr = 0; 29 return(__waddch(win, &buf)); 30 } 31 32 int 33 __waddch(win, dp) 34 WINDOW *win; 35 __LDATA *dp; 36 { 37 static char buf[2]; 38 39 buf[0] = dp->ch; 40 return (__waddbytes(win, buf, 1, dp->attr & __STANDOUT)); 41 } 42