Subject: Re: Assume C89 or later for math functions.

From: Ken Brown <[email-masked]>
Date: Sat, 08 Sep 2012 15:46:13 -0400

On 9/8/2012 3:05 PM, Paul Eggert wrote:
> On 09/08/2012 10:20 AM, Ken Brown wrote:
>> Is there a C program I could run that would answer your question?
>
> Sure, run this:
>
> #include <math.h>
> int main (void)
> {
>    return pow (0, 0) != 1;
> }
>
> If the matherr problem is present, the program will
> print something on stderr, coming from the library.
> If not, the program will exit silently.  On Ubuntu
> it exits with status 0, which is what POSIX requires,
> though pow's exact return value doesn't really matter
> here -- the point is that pow should not write to stderr.

Thanks.  The Cygwin behavior is the same as what you described for 
Ubuntu.  Nothing is written to stderr, and the exit status is 0.

Ken