delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/11/04/20:45:51

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <418AD91D.9C49C24E@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Missing '\r' from stdin
Lines: 13
Date: Fri, 05 Nov 2004 01:39:01 GMT
NNTP-Posting-Host: 12.76.133.31
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1099618741 12.76.133.31 (Fri, 05 Nov 2004 01:39:01 GMT)
NNTP-Posting-Date: Fri, 05 Nov 2004 01:39:01 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

After beating my head against something, I have come to the
conclusion that fgets() in DJGPP 2.03 (and maybe getc etc too)
simply suppress any isolated \r.  I expected that suppression would
only occur when followed by \n (cr/lf).  This is using stdin
undiddled, i.e. as a text file.

Does anyone know if this is correct?

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!

- Raw text -


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