[comp.lang.c] Problem using atof

huff@kuhub.cc.ukans.edu (Steve Huff, University of Kansas, Lawrence) (05/09/91)

I can't seem to get the atof function to work , and implore the net's
assistance.  Here's the basics:

0.  Using Borland's Turbo C 2.0.
1.  math.h and stdio.h are included.
2.  This is the line that continually bombs:
	rec_in.wholesale = atof (*pb);

3.  wholesale is of type float, part of a structure named rec_in.
    *pb is a pointer to a string.

I've looke at pb before execution and it contains "4055" (without the
double quotes).  After the line is executed the following error pops up:
	scanf : floating point formats not linked

Also... where can I find what error messages like this mean?

E-mail replies appreciated.  Offers to do my homework accepted.
Summaries upon request.

Thanks.

Steve
-----
Steve Huff, student, University of Kansas     "Still love that KU basketball!"
Microcomputer Consultant, Hill's Pet Products, Topeka, Kansas
Internet: HUFF@kuhub.cc.ukans.edu  Bitnet: HUFF@UKANVAX  GEIS: HUFF@HILLCORP#