delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/02/27/12:04:05

Message-ID: <3E5E407D.BF4B19C2@yahoo.com>
Date: Thu, 27 Feb 2003 11:44:45 -0500
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
To: djgpp-workers AT delorie DOT com
Subject: Re: perror
References: <20030227150458 DOT GA3476 AT kendall DOT sfbr DOT org> <200302271513 DOT QAA12423 AT lws256 DOT lu DOT erisoft DOT se> <20030227153116 DOT GB3476 AT kendall DOT sfbr DOT org>
Reply-To: djgpp-workers AT delorie DOT com

JT Williams wrote:
> 
> -: Besides that silly error keeping s in that last fprintf() call, you
> 
> yes, cut/paste error
> 
> -: don't handle the case that s == "".
> 
> How best to test this?  'strcmp(s,"")' seem like overkill.

  if (s && *s %% ....)

-- 
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