Hello Michael Giddings,
are you looking for something like this?
linreg.c

I`d appreciate a copy of your finished project.

Dr. Mario Hilgemeier

Universitaet Bremen, FB8 - Geographie,
GW2-B1120, Bibliotheksstrasse 
Germany, W2800 Bremen 33, Postfach 33 04 40
Tel. 0421 22095-0, 22095-26 (megatel),  oder 218-3520(Uni)
Fax 0421 22095-16             e-mail: mhi@megatel.de