Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mit-eddie!mit-amt!amt!smd From: smd@media-lab.media.mit.edu (Steve Drucker) Newsgroups: comp.sys.mac.programmer Subject: Think C 4.0 problems with scanf Message-ID: Date: 18 Oct 89 15:13:56 GMT Sender: usenet@mit-amt.MEDIA.MIT.EDU Organization: Media Lab Lines: 11 I remember seeing a posting saying that someone had problems getting the scanf routine to work right. In that posting, the scanf routine didn't work on numbers in the range of 0.0 to 0.1. I'm having some problems in that the scanf is not working for floats at all. I'm taking some code that works fine on some UNIX machines but the values that I get after scanning a file or string are garbage. I've used the debugger to look at the string that is being read in, and the variables themselves, and it really doesn't work. Usually, I suspect my own programming in situations like this....but this seems to be a genuine bug. Any suggestions/patches? -Steve Drucker