Re: fexception handling in C
- From: "Default User" <defaultuserbr@xxxxxxxxx>
- Date: 27 Jul 2005 21:29:29 GMT
siliconwafer wrote:
> Hi All,
> I am using C on linux and performed a 1/0 operation i.e a divide by
> zero using integer variables/constants.it gives me a floating point
> exceptionand the program terminates.
> I want to access the routine that causes this message to occour and
> want to modify it so that my program continues to run.How is exception
> handling done in C?Is there a try-catch equivalent?
> Any help apriciated.
Rather than try to handle the divide by 0, why not prevent it? You know
where it's happening, add logic to test the operands and handle the
situation.
Brian
.
- Follow-Ups:
- Re: fexception handling in C
- From: siliconwafer
- Re: fexception handling in C
- References:
- fexception handling in C
- From: siliconwafer
- fexception handling in C
- Prev by Date: Re: nested while - how to go to the beginning of the first while?
- Next by Date: Re: Question on arrays within a struct and sprintf
- Previous by thread: Re: fexception handling in C
- Next by thread: Re: fexception handling in C
- Index(es):
Relevant Pages
|
|