4.4BSD snapshot (revision 8.1)
[unix-history] / usr / src / lib / libc / stdio / putchar.c
index d23300c..0721c5e 100644 (file)
@@ -1,16 +1,28 @@
-#ifndef lint
-static char sccsid[] = "@(#)putchar.c  5.1 (Berkeley) %G%";
-#endif not lint
-
-/*
- * A subroutine version of the macro putchar
+/*-
+ * Copyright (c) 1990 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Chris Torek.
+ *
+ * %sccs.include.redist.c%
  */
  */
+
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)putchar.c  5.3 (Berkeley) %G%";
+#endif /* LIBC_SCCS and not lint */
+
 #include <stdio.h>
 
 #undef putchar
 
 #include <stdio.h>
 
 #undef putchar
 
+/*
+ * A subroutine version of the macro putchar
+ */
 putchar(c)
 putchar(c)
-register c;
+       int c;
 {
 {
-       putc(c, stdout);
+       register FILE *so = stdout;
+
+       return (__sputc(c, so));
 }
 }