home *** CD-ROM | disk | FTP | other *** search
/ ftp.disi.unige.it / 2015-02-11.ftp.disi.unige.it.tar / ftp.disi.unige.it / pub / .person / BarlaA / sw / OLD / Simo / SVM_mono / myfile.c < prev    next >
C/C++ Source or Header  |  2002-06-25  |  355b  |  23 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "patt_rec.h"
  4.  
  5. FILE *myfopen(char *fn, char *type, char *msg)
  6. {
  7.     FILE *fp;
  8.   
  9.     if ((fp = fopen(fn, type)) == NULL) 
  10.     {
  11.         fprintf(stderr, "myfopen: problem opening file\n");
  12.         fprintf(stderr, msg);
  13.         exit(-2);
  14.     }
  15.     return fp;
  16. }
  17.  
  18. double ilmiomin(double x, double y)
  19. {
  20.   if(x < y) return(x);
  21.   else return(y);
  22. }
  23.