testing/icgen/random_verschillende_resoluties_N-GenIC/gadget3_64/stage/read_parameters.c
size_t my_fread(void *ptr, size_t size, size_t nmemb, FILE * stream)
{
  size_t nread;

  if((nread = fread(ptr, size, nmemb, stream)) != nmemb)
    {
      if(feof(stream))
	printf("I/O error (fread) has occured: end of file\n");
      else
	printf("I/O error (fread) has occured: %s\n", strerror(errno));
      fflush(stdout);
      endrun(778);
    }
  return nread;
}
/*! This catches I/O errors occuring for fread(). In this case we
 *  better stop.
 */
This catches I/O errors occuring for fread(). In this case we
better stop.
This catches I / O errors occuring for fread () . In this case we better stop .
size_t my_fread(void *ptr, size_t size, size_t nmemb, FILE * stream)
{
  size_t nread;
  if((nread = fread(ptr, size, nmemb, stream)) != nmemb)
    {
      if(feof(stream))
	printf("I/O error (fread) has occured: end of file\n");
      else
	printf("I/O error (fread) has occured: %s\n", strerror(errno));
      fflush(stdout);
      endrun(778);
    }
  return nread;
}
size_t my_fread ( void * ptr , size_t size , size_t nmemb , FILE * stream ) { size_t nread ; if ( ( nread = fread ( ptr , size , nmemb , stream ) ) != nmemb ) { if ( feof ( stream ) ) printf ( " \n " ) ; else printf ( " \n " , strerror ( errno ) ) ; fflush ( stdout ) ; endrun ( 778 ) ; } return nread ; }
This catches I/O errors occuring for fread().
This catches I / O errors occuring for fread () .