KNF
[unix-history] / usr / src / lib / libcurses / addch.c
CommitLineData
6e1c93d0 1/*
2f14f200
KB
2 * Copyright (c) 1981 Regents of the University of California.
3 * All rights reserved.
4 *
f1855e9f 5 * %sccs.include.redist.c%
6e1c93d0
DF
6 */
7
8#ifndef lint
163fe866 9static char sccsid[] = "@(#)addch.c 5.6 (Berkeley) %G%";
a129fb3b 10#endif /* not lint */
6e1c93d0 11
a129fb3b 12#include <curses.h>
8b28dacd
KA
13
14/*
a129fb3b
KB
15 * waddch --
16 * Add the character to the current position in the given window.
8b28dacd 17 *
8b28dacd 18 */
a129fb3b 19int
8b28dacd 20waddch(win, c)
a129fb3b
KB
21 WINDOW *win;
22 int ch;
8b28dacd 23{
a129fb3b
KB
24 static char buf[2];
25
26 buf[0] = ch;
27 return (waddbytes(win, buf, 1));
60d72089 28}