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