Help in dealing with floating point exceptions in C on UNIX/VAX

reschly at BRL.ARPA reschly at BRL.ARPA
Mon Feb 16 08:15:27 AEST 1987


      Tom,

   A man page with the name matherr shows up on both a Gould 6080 running UTX
2.0 (very close to 4.3BSD), and on a VAX 11/780 running 4.3BSD when using
Doug Gwyn's SysV under 4.n emulation.  Note that on the VAX it does not show
up in the 4.3BSD man pages; just the SysV pages.  I think (but am not sure
since I am not a regular user of SysV) that Doug's stuff is currently at
SysVR2.

   Essentially this man page explains a "hook" into the math library.  The
function matherr(x) is invoked by the math library when errors occur, giving
the user the opportunity to determine what gets returned to the program, and
whether to continue execution or to abort.

				Later,
				    Bob



More information about the Comp.lang.c mailing list