TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: all
from: Dan Charrois 70721,1506
date: 1990-05-29 14:02:02
subject: #C error trapping

#: 3938 S3/Languages
    29-May-90  14:02:02
Sb: #C error trapping
Fm: Dan Charrois 70721,1506
To: all

I have a question regarding C.  In reading a book I have on the language, I
found that there is a global variable errno that contains the latest error
result.  As a result of this, I am led to believe that error trapping in C
(run-time error trapping) is possible as it is for other languages, such as
Basic09.  In a program I wrote, a division by zero error resulted in my
returning back to OS9 with an error message - is there any way to get C to
recognize the error before it happens and avoid going back to OS9, but handle
the error in the way I see best?  such as the onerror command in Basic09...
  Thanks for your replies. .....Dan Charrois

There are 3 Replies.

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™.