delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/02/14:41:07

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 2 Sep 2004 20:40:05 +0200
From: egon AT heaven DOT industries DOT cz
To: djgpp AT delorie DOT com
Subject: Re: scanf: strange behavior?
Message-ID: <20040902184005.GA23943@webhome.cz>
References: <20040902144152 DOT GH6858 AT webhome DOT cz> <2pp00iFnf7nsU1 AT uni-berlin DOT de> <41374c9c$0$173$cc7c7865 AT news DOT luth DOT se>
Mime-Version: 1.0
In-Reply-To: <41374c9c$0$173$cc7c7865@news.luth.se>
User-Agent: Mutt/1.5.5.1+cvs20040105i
Sender: Egon Eckert <egon AT webhome DOT cz>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> >> int main(int, const char**)
> >    ^^^^^^^^^^^^^^^^^^^^^^^^^^
> > After correcting this illegal and uncompilable line,

You are kidding (a c++ hater perhaps?).  I think this is legal c++,
and even valid main() prototype.  Correct me if I'm wrong please.

> Which is not compliant to the C99 standard.
> 
> I think Egon is using 2.04 (or even CVS version) and Martin 2.03.

You are right about me.  It's the "last beta".  I tried hard to
assemble a fairly recent but stable djgpp "distro" and I'm very
satisfied now (using gcc 3.3.4).  I'm enjoying the mallinfo() (not in
2.03).

About the standard...  I'm unfortunately unable to access it.  I
purchased just the ISO c++ standard which, obviously, doesn't touch
things belonging to the C library.  May be I should use iostreams then
:)), but I *so* dislike them.

Well, thanks for the explanation.  Have to work around it.  BTW the
API is pretty idiotic IMHO, why not return the count of stored/scanned
items always?

Egon

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019