Manpage of FREAD
FREAD
Section: NEWLIB (3)
Updated: 2005 Feb 23
Index
Return to Main Contents
NAME
3.15 `fread'--read array elements from a file
SYNOPSIS
#include <stdio.h>
size_t fread(void *BUF, size_t SIZE, size_t COUNT,
FILE *FP);
DESCRIPTION
`fread' attempts to copy, from the file or stream identified by FP,
COUNT elements (each of size SIZE) into memory, starting at BUF.
`fread' may copy fewer elements than COUNT if an error, or end of file,
intervenes.
`fread' also advances the file position indicator (if any) for FP by
the number of _characters_ actually read.
RETURNS
The result of `fread' is the number of elements it succeeded in reading.
PORTABILITY
ANSI C requires `fread'.
Supporting OS subroutines required: `close', `fstat', `isatty',
`lseek', `read', `sbrk', `write'.
SEE ALSO
fread
is part of the
libc
library.
The full documentation for
libc
is maintained as a Texinfo manual. If
info
and
libc
are properly installed at your site, the command
-
info libc
will give you access to the complete manual.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURNS
-
- PORTABILITY
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 21:25:17 GMT, May 16, 2005
www.fiveanddime.net