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