summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-07-18 08:33:29 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-07-18 08:33:29 +0000
commitc58c3b0bd66aba8f9a96340185194f0b490a080a (patch)
tree31092ef5fe983c3dcac9d9861ecc9a8229b8759d
parentfaf55bb3f63b584cf40f0c0f6312ab26f3da6487 (diff)
Notes
-rw-r--r--lib/libc/stdio/fopen.315
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index f25e6df17cf80..70dcb5a7f822c 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -230,15 +230,20 @@ argument,
.Fn fmemopen
allocates
.Fa size
-bytes of memory. This buffer is automatically freed when the
-stream is closed. Buffers can be opened in text-mode (default) or binary-mode
+bytes of memory.
+This buffer is automatically freed when the stream is closed.
+Buffers can be opened in text-mode (default) or binary-mode
(if
.Dq Li b
is present in the second or third position of the
.Fa mode
-argument). Buffers opened in text-mode make sure that writes are terminated with
-a NULL byte, if the last write hasn't filled up the whole buffer. Buffers
-opened in binary-mode never append a NULL byte.
+argument).
+Buffers opened in text-mode make sure that writes are terminated with a
+.Dv NULL
+byte, if the last write hasn't filled up the whole buffer.
+Buffers opened in binary-mode never append a
+.Dv NULL
+byte.
.Sh RETURN VALUES
Upon successful completion
.Fn fopen ,