Re: SIGFPE

Liste des GroupesRevenir à cl c  
Sujet : Re: SIGFPE
De : tydeman.consulting (at) *nospam* sbcglobal.net (Fred J. Tydeman)
Groupes : comp.lang.c
Date : 24. Oct 2024, 18:05:11
Autres entêtes
Organisation : Tydeman Consulting
Message-ID : <Jd11RFbi8Eoq-pn2-Fs5W95D5XjbX@localhost>
References : 1 2
User-Agent : ProNews/2 V1.60.cp125
On Wed, 23 Oct 2024 07:42:12 UTC, Andrey Tarasevich <andreytarasevich@hotmail.com> wrote:

On 10/22/24 10:10 PM, Fred J. Tydeman wrote:
 
Anyone know of any implementations that use SIGFPE?
If so, how is it used?
 
   #include <limits.h>
 
   int main(void)
   {
     int a = INT_MIN, b = -1;
     return a / b;
   }
 
https://godbolt.org/z/GnYsnTWWd
 
   Program terminated with signal: SIGFPE

I see I asked the wrong question.
Anyone know of any standard C libaray implementations that use SIGFPE?
If so, how is it used?
---
Fred J. Tydeman        Tydeman Consulting
tydeman@tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of INCITS/C (ANSI "C")
Sample C17+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.

Date Sujet#  Auteur
23 Oct 24 * Re: SIGFPE4Andrey Tarasevich
24 Oct 24 +* Re: SIGFPE2Fred J. Tydeman
24 Oct 24 i`- Re: SIGFPE1James Kuyper
24 Oct 24 `- Re: SIGFPE1Fred J. Tydeman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal