Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!caen!kuhub.cc.ukans.edu!huff From: huff@kuhub.cc.ukans.edu (Steve Huff, University of Kansas, Lawrence) Newsgroups: comp.lang.c Subject: Problem using atof (probably a simple question) Message-ID: <1991May8.234239.30557@kuhub.cc.ukans.edu> Date: 9 May 91 04:42:39 GMT Organization: University of Kansas Academic Computing Services Lines: 27 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#