read_config
Called by: main once.
Includes: iscloc.h
External:
instructfile, logfile, errfile, isf_outfile, update_db, repid, out_agency
isf_stafile, default_depth, max_err_factor
min_phases, weighting1, weighting2, sigma_start, mu, init_max_resid, max_resid, purge_resid
max_iter, avg_weight_thresh, alpha_thresh, dalpha_thresh, dsigma_low, dsigma_high
crust_corr_on, elev_corr_on
body_mag_min_dist, body_mag_max_dist, surf_mag_min_dist, surf_mag_max_dist
body_mag_min_per, body_mag_max_per, surf_mag_min_per, surf_mag_max_per
mag_range_warn_thresh
Input arguments: Path/name of configuration file.
Structure members updated: none.
Return: 0/1 for success/failure.
This function reads the configuration
file named as its argument and assigns values to external variables that
can be used in other functions. It reads the file a line at a time,
skipping blank lines. Non blank lines are expected to contain information
in the format parameter = value with at least one unit of white space either
side of the equals sign. Anything after a # character is treated as
a comment and not read. Each parameter read is compared against the
list of external variables declared at the top of the function and if it matches
one of them then that external variable is assigned the corresponding value.