• SIGFPE

    From Fred J. Tydeman@tydeman.consulting@sbcglobal.net to comp.lang.c on Wed Oct 23 05:10:30 2024
    From Newsgroup: comp.lang.c


    Anyone know of any 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.
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Andrey Tarasevich@andreytarasevich@hotmail.com to comp.lang.c on Wed Oct 23 00:42:12 2024
    From Newsgroup: comp.lang.c

    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
    --
    Best regards,
    Andrey

    --- Synchronet 3.20a-Linux NewsLink 1.114