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.7 (Berkeley) 08/23/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 int 20 waddch(win, ch) 21 WINDOW *win; 22 int ch; 23 { 24 static char buf[2]; 25 26 buf[0] = ch; 27 return (waddbytes(win, buf, 1)); 28 } 29