/* all the crap needed to run the code */ typedef struct STATION_STRUCT { char name[5]; float lat; float lon; /* station adjustments */ float ml; float ms; float mb; }Station_Struct; /* Protypes */ Station_Struct *read_station_pos (int *num_stat, char *file); void read_ml_adjust(int num_stat, Station_Struct *sta_list, char *in_file); double calc_ms (double amplitude, double frequency, Station_Struct sta_info, double lat, double lon); double calc_mb (double amplitude, double frequency, Station_Struct sta_info, double lat, double lon, double depth); double calc_dist (double s_lat,double s_lon,double e_lat,double e_lon); double calc_ml (double amplitude, Station_Struct sta_info, double lat, double lon); void print_syntax(void); void print_err_syntax(char *error);