Loading...
stdio/fread.3 Libc-262 Libc-498
--- Libc/Libc-262/stdio/fread.3
+++ Libc/Libc-498/stdio/fread.3
@@ -34,7 +34,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)fread.3	8.2 (Berkeley) 3/8/94
-.\" $FreeBSD: src/lib/libc/stdio/fread.3,v 1.8 2001/10/01 16:08:59 ru Exp $
+.\" $FreeBSD: src/lib/libc/stdio/fread.3,v 1.9 2002/10/12 16:13:37 mike Exp $
 .\"
 .Dd March 8, 1994
 .Dt FREAD 3
@@ -48,14 +48,16 @@
 .Sh SYNOPSIS
 .In stdio.h
 .Ft size_t
-.Fn fread "void *ptr" "size_t size" "size_t nmemb" "FILE *stream"
+.Fn fread "void *restrict ptr" "size_t size" "size_t nitems" \
+    "FILE *restrict stream"
 .Ft size_t
-.Fn fwrite "const void *ptr" "size_t size" "size_t nmemb" "FILE *stream"
+.Fn fwrite "const void *restrict ptr" "size_t size" "size_t nitems" \
+    "FILE *restrict stream"
 .Sh DESCRIPTION
 The function
 .Fn fread
 reads
-.Fa nmemb
+.Fa nitems
 objects, each
 .Fa size
 bytes long, from the stream pointed to by
@@ -66,7 +68,7 @@
 The function
 .Fn fwrite
 writes
-.Fa nmemb
+.Fa nitems
 objects, each
 .Fa size
 bytes long, to the stream pointed to by
@@ -86,7 +88,7 @@
 .Pp
 The function
 .Fn fread
-does not distinguish between end-of-file and error, and callers
+does not distinguish between end-of-file and error; callers
 must use
 .Xr feof 3
 and
@@ -95,7 +97,7 @@
 The function
 .Fn fwrite
 returns a value less than
-.Fa nmemb
+.Fa nitems
 only if a write error has occurred.
 .Sh SEE ALSO
 .Xr read 2 ,