Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!ctrsol!cica!iuvax!rutgers!att!cbnewsh!osh From: osh@cbnewsh.ATT.COM (david.a.oshinsky) Newsgroups: comp.sys.ibm.pc Subject: Re: Bug in Turbo C "printf"; potentially serious. I think. Summary: patches fix several bugs in Turbo C 2.0 (including "printf" bug) Keywords: rounding, I better be right Message-ID: <5749@cbnewsh.ATT.COM> Date: 14 Nov 89 16:27:45 GMT References: <2158@leah.Albany.Edu> Organization: AT&T Bell Laboratories Lines: 23 In article <2158@leah.Albany.Edu> rds95@leah.Albany.Edu (Robert Seals) writes: > Turbo C in the small model prints "1" instead of "10"; it seems that whenever > the print format is "%.0lf" and the argument rounds to a power of 10, > printf and fprintf (haven't tried cprintf or sprintf) print 1 too few '0's. Patch files (named "patch.arc", "tc2pat.arc", and "td1pat.arc") have been circulating which fix a number of bugs in early "releases" of the Turbo C 2.0 package. Later "releases" were patched by Borland. Unfortunately, the "release" number (2.0) does not indicate which patches have been applied. The bugs are in stat(), printf(), td386.exe, tdh386.sys, and tlib.exe. The printf() bug is exactly the one which Robert Seals writes about. I'll send the patch files to those who send me e-mail. David Oshinsky AT&T Bell Laboratories Crawfords Corner Road, Room 2K334 Holmdel, NJ 07733 phone: (201)949-0037 uucp: att!quark!osh