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

From: Paul Eggert <[email-masked]>
Date: Sat, 08 Sep 2012 12:05:32 -0700

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.