summaryrefslogtreecommitdiff
path: root/static/v10/man3/fread.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/fread.3
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/fread.3')
-rw-r--r--static/v10/man3/fread.355
1 files changed, 55 insertions, 0 deletions
diff --git a/static/v10/man3/fread.3 b/static/v10/man3/fread.3
new file mode 100644
index 00000000..bd78f3fc
--- /dev/null
+++ b/static/v10/man3/fread.3
@@ -0,0 +1,55 @@
+.TH FREAD 3S
+.CT 2 file_io
+.SH NAME
+fread, fwrite \(mi buffered binary input/output
+.SH SYNOPSIS
+.B #include <stdio.h>
+.PP
+.B int fread(ptr, sizeof(*ptr), nitems, stream)
+.br
+.SM
+.B FILE
+.B *stream;
+.PP
+.B int fwrite(ptr, sizeof(*ptr), nitems, stream)
+.br
+.SM
+.B FILE
+.B *stream;
+.SH DESCRIPTION
+.I Fread
+reads from the named input
+.IR stream
+at most
+.I nitems
+of data of the type of
+.I *ptr
+into a block beginning at
+.I ptr.
+It returns the number of items actually read.
+.PP
+.I Fwrite
+appends to the named output
+.I stream
+at most
+.I nitems
+of data of the type of
+.I *ptr
+from a block beginning at
+.I ptr.
+It returns the number of items actually written.
+.SH "SEE ALSO"
+.IR read (2),
+.IR stdio (3)
+.SH DIAGNOSTICS
+.I Fread
+and
+.I fwrite
+return 0
+upon end of file or error.
+.SH BUGS
+Write errors of the data for any
+.I fwrite
+call may occur a long time after that call.
+.br
+These routines are much slower than you might imagine.