Loading...
stdio/FreeBSD/fread.3 Libc-1725.40.4 Libc-763.13
--- Libc/Libc-1725.40.4/stdio/FreeBSD/fread.3
+++ Libc/Libc-763.13/stdio/FreeBSD/fread.3
@@ -44,16 +44,14 @@
 .Sh SYNOPSIS
 .In stdio.h
 .Ft size_t
-.Fn fread "void *restrict ptr" "size_t size" "size_t nitems" \
-    "FILE *restrict stream"
+.Fn fread "void * restrict ptr" "size_t size" "size_t nmemb" "FILE * restrict stream"
 .Ft size_t
-.Fn fwrite "const void *restrict ptr" "size_t size" "size_t nitems" \
-    "FILE *restrict stream"
+.Fn fwrite "const void * restrict ptr" "size_t size" "size_t nmemb" "FILE * restrict stream"
 .Sh DESCRIPTION
 The function
 .Fn fread
 reads
-.Fa nitems
+.Fa nmemb
 objects, each
 .Fa size
 bytes long, from the stream pointed to by
@@ -64,7 +62,7 @@
 The function
 .Fn fwrite
 writes
-.Fa nitems
+.Fa nmemb
 objects, each
 .Fa size
 bytes long, to the stream pointed to by
@@ -84,7 +82,7 @@
 .Pp
 The function
 .Fn fread
-does not distinguish between end-of-file and error; callers
+does not distinguish between end-of-file and error, and callers
 must use
 .Xr feof 3
 and
@@ -93,7 +91,7 @@
 The function
 .Fn fwrite
 returns a value less than
-.Fa nitems
+.Fa nmemb
 only if a write error has occurred.
 .Sh SEE ALSO
 .Xr read 2 ,