fread.3: Explain that file position is moved after calling fread()/fwrite()

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>
This commit is contained in:
Arkadiusz Drabczyk 2020-06-17 00:15:20 +02:00 committed by Michael Kerrisk
parent d7f741cf33
commit ef5cd40e3f
1 changed files with 3 additions and 0 deletions

View 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)