/* abort( void )12This file is part of the Public Domain C Library (PDCLib).3Permission is granted to use, modify, and / or redistribute at will.4*/56#include <stdlib.h>7#include <signal.h>89#ifndef REGTEST1011void abort( void )12{13raise( SIGABRT );14exit( EXIT_FAILURE );15}1617#endif1819#ifdef TEST20#include "_PDCLIB_test.h"2122#include <stdio.h>2324static void aborthandler( int sig )25{26exit( 0 );27}2829int main( void )30{31int UNEXPECTED_RETURN_FROM_ABORT = 0;32TESTCASE( signal( SIGABRT, &aborthandler ) != SIG_ERR );33abort();34TESTCASE( UNEXPECTED_RETURN_FROM_ABORT );35return TEST_RESULTS;36}3738#endif394041