delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/11:51:03

Date: Wed, 20 Oct 1999 14:13:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "Wendy E. McCaughrin" <wemccaug AT prairienet DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: What is proper protocol for matherr()?
In-Reply-To: <HCcP3.244$Ak5.29@firefly>
Message-ID: <Pine.SUN.3.91.991020141016.22660j-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 20 Oct 1999, Wendy E. McCaughrin wrote:

>  What is supposed to happen if a user returns 0 from
>  matherr() (indicating no fix to problem)? Does the
>  function abort?

`matherr' never causes the program to abort; if you want to abort the 
program, you need to do it yourself in the version of `matherr' you 
supply.

In general, `matherr' is not supposed to abort the program, just to cope 
with numerical errors so that the program does NOT abort in the first 
place.

Did you read the docs of `matherr'?  If not, I suggest to do it, 'cause I 
think it will answer many of your questions.  From the DOS prompt, type 
"info libc matherr" and read there.  Additional info is available by 
typing "info libc libm".

- Raw text -


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