443
edits
-
Changes
Created page with "<strong>FREAD</strong> ==SYNOPSIS== #include <stdio.h> int fread(void * buf, size_t size, size_t cnt, FILE * stream) ==DESCRIPTION== Up to cnt objects, each of length..."
<strong>FREAD</strong>
==SYNOPSIS==
#include <stdio.h>
int fread(void * buf, size_t size, size_t cnt, FILE * stream)
==DESCRIPTION==
Up to cnt objects, each of length size, are read into
memory at buf from the stream. The return value is the
number of objects read. If none is read, 0 will be
returned. Note that a return value less than cnt, but
greater than 0, may not represent an error (cf.
<strong>fwrite</strong>() ). No word alignment in the stream is assumed
or necessary. The read is done via successive <strong>getc</strong>()'s.
==SEE ALSO==
fwrite, fopen, fclose, getc
==SYNOPSIS==
#include <stdio.h>
int fread(void * buf, size_t size, size_t cnt, FILE * stream)
==DESCRIPTION==
Up to cnt objects, each of length size, are read into
memory at buf from the stream. The return value is the
number of objects read. If none is read, 0 will be
returned. Note that a return value less than cnt, but
greater than 0, may not represent an error (cf.
<strong>fwrite</strong>() ). No word alignment in the stream is assumed
or necessary. The read is done via successive <strong>getc</strong>()'s.
==SEE ALSO==
fwrite, fopen, fclose, getc