www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/20/10:31:28

Message-Id: <199904201531.PAA78048@out2.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Tue, 20 Apr 1999 11:31:38 -0400
MIME-Version: 1.0
Subject: Re: Bug no. 277
CC: eliz AT is DOT elta DOT co DOT il
References: <199904200520 DOT FAA38452 AT out5 DOT ibm DOT net>
In-reply-to: <Pine.SUN.3.91.990420120734.841J-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com

> 
> On Tue, 20 Apr 1999, Mark E. wrote:
> 
> > If you compile the original example, it "fails" just like the sample C++
> > program in bug #277 when ctrl-z is pressed. When a call to
> > clearerr(stdin) is added as above, the program waits at the second
> > prompt.
> 
> Yup, that's what the C program I put in my note to this bug report did
> also.
> 
> > But when I added clearerr(stdin) to bug 277's sample 
> > program, it made no difference. So I have to conclude that it's a 
> > libstdc++ and not a DJGPP problem .
> 
> So this probably means that libstdc++ doesn't use the stdin stream at all,
> right?
> 

It does use the stdio stream. Also, I did get #277's program to work 
after changing 'int q' to 'char q' along with the clearerr(stdin) call. 
Remove the either and the program stops working again.

Mark


--- 
Mark Elbrecht, snowball3 AT usa DOT net
http://snowball.digitalspace.net/

- Raw text -


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