Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!bbn.com!nic!news.cs.brandeis.edu!news!phils From: phils@chaos.cs.brandeis.edu (Phil Shapiro) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C scanf() bug? Message-ID: Date: 21 Mar 91 19:50:36 GMT References: <1991Mar17.230413.1917@leland.Stanford.EDU> <3165@charon.cwi.nl> Sender: usenet@news.cs.brandeis.edu Organization: Symantec Corp. Lines: 36 In-Reply-To: guido@cwi.nl's message of 18 Mar 91 15:27:02 GMT In article <3165@charon.cwi.nl> guido@cwi.nl (Guido van Rossum) writes: noa@leland.Stanford.EDU (Noa More) writes: >1. (The most serious) If I use scanf() with floats, the numbers I >get from the input are completely unrelated to the input [...] This sounds like the bug in scanf in 4.00, which is fixed in 4.02. A free upgrade from 4.00 to 4.02 can be uploaded from SUMEX. Right! This is bug that's fixed in the 4.02 patch. >2. Can the console window be resized? Although there is no resize icon, the console window does resize when you grab it in its bottom right corner. Yes. Also, you can resize the console before it appears on the screen by using the structure "console_options". Check out p. 167 of the Std. Lib. Ref. >3. I very much miss both i/o redirection (<<,>>) There used to be a main program which you could compile and link with your program (renaming your own main to _main), which prompted for arguments and also understood < and > redirection. This was the old, v3.0 way of doing things. The new, v4.0 way is to use the function ccommand(). It no longer parses < and >, but it should do more or less what you want. It's described on p. 171 of the Std. Lib. Ref. -phil ---- Phil Shapiro Technical Support Analyst Language Products Group Symantec Corporation Internet: phils@chaos.cs.brandeis.edu