xref: /csrg-svn/lib/libc/stdio/putchar.c (revision 46097)
1*46097Sbostic /*-
2*46097Sbostic  * Copyright (c) 1990 The Regents of the University of California.
3*46097Sbostic  * All rights reserved.
4*46097Sbostic  *
5*46097Sbostic  * This code is derived from software contributed to Berkeley by
6*46097Sbostic  * Chris Torek.
7*46097Sbostic  *
8*46097Sbostic  * %sccs.include.redist.c%
9*46097Sbostic  */
10*46097Sbostic 
1126658Sdonn #if defined(LIBC_SCCS) && !defined(lint)
12*46097Sbostic static char sccsid[] = "@(#)putchar.c	5.3 (Berkeley) 01/20/91";
13*46097Sbostic #endif /* LIBC_SCCS and not lint */
1422140Smckusick 
152026Swnj #include <stdio.h>
162026Swnj 
172026Swnj #undef putchar
182026Swnj 
19*46097Sbostic /*
20*46097Sbostic  * A subroutine version of the macro putchar
21*46097Sbostic  */
222026Swnj putchar(c)
23*46097Sbostic 	int c;
242026Swnj {
25*46097Sbostic 	register FILE *so = stdout;
26*46097Sbostic 
27*46097Sbostic 	return (__sputc(c, so));
282026Swnj }
29