delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | Manni Heumann <manni DOT heumann AT gmx DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: File bad() problem - bug in djgpp or is it me??? |
Date: | 19 Jan 2002 16:18:16 GMT |
Lines: | 20 |
Message-ID: | <a2c687$10360u$1@ID-54749.news.dfncis.de> |
References: | <3c47248f DOT 7781706 AT news DOT ntlworld DOT com> <Xns9199ABC611E1AASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <3c474cca DOT 18082698 AT news DOT ntlworld DOT com> <Xns9199DEB406DE3ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <3c4891c6 DOT 3850646 AT news DOT ntlworld DOT com> |
NNTP-Posting-Host: | ppp164-167.uni-bielefeld.de (129.70.164.167) |
Mime-Version: | 1.0 |
X-Trace: | fu-berlin.de 1011457096 33658910 129.70.164.167 (16 1428 [54749]) |
User-Agent: | Xnews/L5 |
X-Face: | "c)Go+A65AgR*9'!B)BMLM$kYg6HDG!_g'DAsj*ALo%=kp{X&abs&t\G0F~*r?VRj#|4=6)M.RJPnD]Ql:B<-7A^EAYFpDpZRMoJy?80^3B3b AT DXb%MTyOD.*4wu&Xt6o*+6`r5E |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Kevin Dickerson wrote: > On 18 Jan 2002 02:53:35 GMT, "A. Sinan Unur" > <asu1 AT cornell DOT edu> wrote: > [...] >>does it work is you replace bad() with is_open()? > > Tried that, and it still isn't playing ball, might try and > d/l an earlier version of gcc and see if that works, then > if it does put a fault in. Could this be a problem with the standard, i.e. our understanding of the standard? We have good(), fail(), and bad(). And bad() is only supposed to return true, when characters have been lost while reading from a file. What do good() and fail() say in your case? I never test bad() in such cases, because fail() will complain much earlier. Manni
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |