#: 3939 S3/Languages
29-May-90 15:58:16
Sb: #3938-#C error trapping
Fm: Pete Lyall 76703,4230
To: Dan Charrois 70721,1506 (X)
Dan -
Actually, that depends on how the internal math functions were written. If they
do the equivalent of this:
if((param1/param2) == ERRDIV)
exit(ERRDIV)
then there's no way to trap it. If the function you used RETURNS an error value
(the usual 'C' way of doing things) either explicitly (unlikely) or by
returning a -1, and then letting you examine 'errno', you can do as you like
with it. We'd probably have to see the program fragment to get more specific.
Pete
There is 1 Reply.
|