diff options
Diffstat (limited to 'src/libstddjb/sigfpe.c')
-rw-r--r-- | src/libstddjb/sigfpe.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/sigfpe.c b/src/libstddjb/sigfpe.c new file mode 100644 index 0000000..2ff92a7 --- /dev/null +++ b/src/libstddjb/sigfpe.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include <signal.h> +#include <skalibs/segfault.h> + +int sigfpe (void) +{ + return raise(SIGFPE) == 0 ; +} |