fprintf(fd,"\nQuant over all: %2.2f\n",(float)sum/(float)total); fclose(fd);
qfprintf(fd,"\nQuant over all: %2.2f\n",(float)sum/(float)total); qfclose(fd);
void print_quant_stat(const char *n){  char *str = (char*)ADM_alloc( strlen(n) + 4 );  unsigned int i=2,sum=0,total=0;  FILE *fd;   ADM_assert( str );   strcpy(str,n);   strcat(str,".qs");   if( (fd=fopen(str,"wb")) ){      for(;i<32;i++){         fprintf(fd,"Quant % 2u: % 7u times\n",i,quantstat[i]);         sum+=i*quantstat[i];         total+=quantstat[i];      }      fprintf(fd,"\nQuant over all: %2.2f\n",(float)sum/(float)total);      fclose(fd);   }   ADM_dealloc( str );}