TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Dan Charrois 70721,1506 (X)
from: Pete Lyall 76703,4230
date: 1990-05-29 15:58:16
subject: #3938-#C error trapping

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.