FidoNet Echomail Archive
aust_c_here

<<< Previous Index Next >>>

From: Frank Adam
To: Paul Edwards
Date: 1997-03-08 06:01:00
Subject: Re: Borland C bug ?!?

 G'Day Paul,
 
-=> Quoting Paul Edwards to Frank Adam <=-

 FA> while(NULL != fgets(buf,80,in))
 FA> ((p = strrchr(buf,'\n')) != NULL) ? *p = '\0' : panic();

 PE> Why bother panicing?  Personally I just delete the '\n' if 
 PE> it is present, otherwise, carry on with the rest of the 
 PE> processing.  BFN.  Paul.
That missing '\n' would probably indicate a corrupt or truncated file 
as far as standard DOS text files go.  
               
  L8r Frank (fadam{at}ozemail.com.au).
  
___ Blue Wave/DOS v2.21

--- Maximus 3.00
 * Origin: ZWSBBS +61-3-98276881 28800bps Multiline (3:634/396)
SEEN-BY: 633/267 270
@PATH: 634/396 639/252 632/360 50/99 635/728 633/267



<<< Previous Index Next >>>