size_t fread(void *__ptr, size_t __size, size_t __nmemb, FILE *__stream)
Read nmemb objects,
size bytes each, from
stream, to the buffer pointed to by
ptr.
Returns the number of objects successfully read, i. e.
nmemb unless an input error occured or end-of-file
was encountered. feof() and ferror() must be used to distinguish between these two conditions.