]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fread.3: Explain that file position is moved after calling fread()/fwrite()
authorArkadiusz Drabczyk <arkadiusz@drabczyk.org>
Tue, 16 Jun 2020 22:15:20 +0000 (00:15 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Jun 2020 12:27:54 +0000 (14:27 +0200)
Corresponding manpage on FreeBSD already contains that
information.

Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/fread.3

index 2dd7be90d95c50276932058b67ab2b8458f10e9a..2dcca9b00e14be64bf6bd8984e1a05973c375981 100644 (file)
@@ -92,6 +92,9 @@ is 1.
 If an error occurs, or the end of the file is reached,
 the return value is a short item count (or zero).
 .PP
+The file position indicator for the stream is advanced by the number
+of bytes successfully read or written.
+.PP
 .BR fread ()
 does not distinguish between end-of-file and error, and callers must use
 .BR feof (3)