diff options
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fread.3 | 4 | ||||
-rw-r--r-- | lib/libc/stdio/stdio.3 | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdio/fread.3 b/lib/libc/stdio/fread.3 index 03a9141..c3e591a 100644 --- a/lib/libc/stdio/fread.3 +++ b/lib/libc/stdio/fread.3 @@ -44,9 +44,9 @@ .Nd binary stream input/output .Sh SYNOPSIS .Fd #include <stdio.h> -.Ft int +.Ft size_t .Fn fread "void *ptr" "size_t size" "size_t nmemb" "FILE *stream" -.Ft int +.Ft size_t .Fn fwrite "const void *ptr" "size_t size" "size_t nmemb" "FILE *stream" .Sh DESCRIPTION The function diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3 index 7ebc782..3bde13c 100644 --- a/lib/libc/stdio/stdio.3 +++ b/lib/libc/stdio/stdio.3 @@ -63,7 +63,7 @@ If a file can support positioning requests (such as a disk file, as opposed to a terminal) then a .Em file position indicator associated with the stream is positioned at the start of the file (byte -zero), unless the file is opened with appended mode. If append mode +zero), unless the file is opened with append mode. If append mode is used, the position indicator will be placed the end-of-file. The position indicator is maintained by subsequent reads, writes and positioning requests. All input occurs as if the characters @@ -111,7 +111,7 @@ opened explicitly: (for reading conventional input), .It .Em standard output -(for writing conventional input), and +(for writing conventional output), and .It .Em standard error (for writing diagnostic output). @@ -229,7 +229,7 @@ feof check and reset stream status ferror check and reset stream status fflush flush a stream fgetc get next character or word from input stream -fgetline get a line from a stream +fgetln get a line from a stream fgetpos reposition a stream fgets get a line from a stream fileno check and reset stream status |