#include "fit.hh" // contains prototypes of get_data, do_fit. const int MAX_POINTS=100; int num_points; double x[MAX_POINTS], y[MAX_POINTS], dy[MAX_POINTS]; void main() { get_data (&num_points, x, y, dy); // passed to fcn as extern do_fit (); }