1 /* 2 * Copyright (c) 1981, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)addch.c 8.2 (Berkeley) 05/04/94"; 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 int 20 waddch(win, ch) 21 WINDOW *win; 22 int ch; 23 { 24 __LDATA buf; 25 26 buf.ch = ch; 27 buf.attr = 0; 28 return (__waddch(win, &buf)); 29 } 30 31 int 32 __waddch(win, dp) 33 WINDOW *win; 34 __LDATA *dp; 35 { 36 char buf[2]; 37 38 buf[0] = dp->ch; 39 return (__waddbytes(win, buf, 1, dp->attr & __STANDOUT)); 40 } 41