This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
How do I trap divide-by-zero conditions in g77/gcc?
- From: Michael A Richmond <Michael dot A dot Richmond dot 1 at gsfc dot nasa dot gov>
- To: cygwin at cygwin dot com
- Date: Mon, 04 Mar 2002 14:06:15 -0500
- Subject: How do I trap divide-by-zero conditions in g77/gcc?
I want to write a Fortran program that crashes if the user inadvertently
divides by zero. I can do it in Delorie by calling a C function named
_control87, but Cygwin has no such function. Is there a way to do it in
Cygwin? Thank you for your help.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/