xref: /csrg-svn/lib/libc/stdio/putchar.c (revision 61180)
146097Sbostic /*-
2*61180Sbostic  * Copyright (c) 1990, 1993
3*61180Sbostic  *	The Regents of the University of California.  All rights reserved.
446097Sbostic  *
546097Sbostic  * This code is derived from software contributed to Berkeley by
646097Sbostic  * Chris Torek.
746097Sbostic  *
846097Sbostic  * %sccs.include.redist.c%
946097Sbostic  */
1046097Sbostic 
1126658Sdonn #if defined(LIBC_SCCS) && !defined(lint)
12*61180Sbostic static char sccsid[] = "@(#)putchar.c	8.1 (Berkeley) 06/04/93";
1346097Sbostic #endif /* LIBC_SCCS and not lint */
1422140Smckusick 
152026Swnj #include <stdio.h>
162026Swnj 
172026Swnj #undef putchar
182026Swnj 
1946097Sbostic /*
2046097Sbostic  * A subroutine version of the macro putchar
2146097Sbostic  */
putchar(c)222026Swnj putchar(c)
2346097Sbostic 	int c;
242026Swnj {
2546097Sbostic 	register FILE *so = stdout;
2646097Sbostic 
2746097Sbostic 	return (__sputc(c, so));
282026Swnj }
29