home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / educaton / inf_src.arc / RPD_FALL.C < prev    next >
C/C++ Source or Header  |  1986-03-14  |  317b  |  22 lines

  1.  
  2.  
  3.  
  4. #include <stdio.h>
  5. #include "routine.h"
  6. #include "weather.h"
  7.  
  8. main()
  9. {
  10. FILE *dataFile ;
  11. int    value[20] ;
  12.  
  13. dataFile = fopen("WEATHER.DAT","rb") ;
  14. fread(value,2,20,dataFile) ;
  15. fclose(dataFile) ;
  16. if(value[1]==FALL_FAST)
  17.     return(RETURN_ROUTINE_TRUE) ;
  18. else
  19.     return(RETURN_ROUTINE_FALSE) ;
  20. }
  21.  
  22.