summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/putchr.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/putchr.3
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/putchr.3')
-rw-r--r--static/unix-v10/man3/putchr.349
1 files changed, 49 insertions, 0 deletions
diff --git a/static/unix-v10/man3/putchr.3 b/static/unix-v10/man3/putchr.3
new file mode 100644
index 00000000..20438640
--- /dev/null
+++ b/static/unix-v10/man3/putchr.3
@@ -0,0 +1,49 @@
+.th PUTCHAR III 5/10/73
+.sh NAME
+putchar \*- write character
+.sh SYNOPSIS
+.ft B
+putchar(ch)
+.s3
+flush( )
+.ft R
+.sh DESCRIPTION
+.it Putchar
+writes out its argument and returns it unchanged.
+The low-order byte of the
+argument is always written;
+the high-order byte is written only if it is
+non-null.
+Unless other arrangements have been made,
+.it putchar
+writes in
+unbuffered fashion on the standard output file.
+.s3
+Associated with this routine is an external variable
+.it fout
+which has the
+structure of a buffer discussed under putc (III).
+If the file descriptor part of this structure (first word)
+is not 1, output via
+.it putchar
+is buffered.
+To achieve buffered output one may say, for example,
+.s3
+.nf
+ fout = dup(1); or
+ fout = fcreat(...);
+.s3
+.fi
+In such a case
+.it flush
+must be called
+before the program terminates in order to flush out
+the buffered output.
+.it Flush
+may be called at any time.
+.sh "SEE ALSO"
+putc(III)
+.sh BUGS
+The
+.it fout
+notion is kludgy.