Re: fexception handling in C
- From: "John Bode" <john_bode@xxxxxxxxxxx>
- Date: 27 Jul 2005 11:50:52 -0700
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.
> Thanks,
> Shekhar
Read up on the signal() function. It allows you to install an
interrupt handler to catch exceptional conditions and handle them as
you need to.
.
- References:
- fexception handling in C
- From: siliconwafer
- fexception handling in C
- Prev by Date: Using fgets() within a function returning an error.
- Next by Date: Re: fexception handling in C
- Previous by thread: Re: fexception handling in C
- Next by thread: Re: fexception handling in C
- Index(es):
Relevant Pages
|