Problem using atof (probably a simple question)
Steve Huff, University of Kansas, Lawrence
huff at kuhub.cc.ukans.edu
Thu May 9 14:42:39 AEST 1991
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 at kuhub.cc.ukans.edu Bitnet: HUFF at UKANVAX GEIS: HUFF at HILLCORP#
More information about the Comp.lang.c
mailing list