Article View: comp.sys.next.programmer
Article #1514Re: printf g format still broken under NeXTSTEP 3.0
From: Sebastian Florian Mix
Date: Wed, 11 Nov 1992 16:21
Date: Wed, 11 Nov 1992 16:21
12 lines
1219 bytes
1219 bytes
Well, I suspect NeXT to be wrong in this case, since there is at least one similar thing in fscanf(). Lets have a file with contents "a is:1.0\n" and try to read it with fscanf(file,"a is:%lg\n",&d) into the double d: you'll get a return value of 0 from fscanf and it stops at the '.', and I don't think it is supposed to do so, or is it ? -- -------------------------------------------------------------------------------- Sebastian Mix, Eichhornstr.5-6 Apt.222, D-1000 Berlin 30, T: (030) 262 1811 /(a\ charon@cs.tu-berlin.de <-no NeXTmail yo-> charabib@w271zrz.zrz.tu-berlin.de \p)/ --------------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Nov11.162104.1538@cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!charonReferences:
<1992Nov11.012228.23372@access.usask.ca> <1992Nov11.095957.22979@cs.brown.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!charon From: charon@opal.cs.tu-berlin.de (Sebastian Florian Mix) Subject: Re: printf g format still broken under NeXTSTEP 3.0 Message-ID: <1992Nov11.162104.1538@cs.tu-berlin.de> Sender: news@cs.tu-berlin.de Organization: Techn. University of Berlin, Germany References: <1992Nov11.012228.23372@access.usask.ca> <1992Nov11.095957.22979@cs.brown.edu> Date: Wed, 11 Nov 1992 16:21:04 GMT Lines: 12