Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!sun-barr!lll-winken!ames!uhccux!munnari.oz.au!uniwa!fennel.cc.uwa.oz.au!t_hallam From: t_hallam@fennel.cc.uwa.oz.au Newsgroups: comp.sys.mac.programmer Subject: ThinkC scanf() bug. Missing 0 Message-ID: <1991Apr30.124752.3233@fennel.cc.uwa.oz.au> Date: 30 Apr 91 04:47:52 GMT Organization: University of Western Australia Lines: 18 I just found a bug with ThinkC's scanf(). float number; void main() { scanf("%lf",number); } put 0.03 and you get 0.3 for number. Seems that it skips the leading 0 even when they are after a decimal point. I gather that there is a patch for several bugs in scanf(). If someone has a copy could they please post it to me. Thanks in advance T Hallam