]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/abort.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / stdlib / abort.c
index 4a15bf898c84f90b9b3e3a83add230f9aa20fc65..0c3428340c2ecde0a105180ab7adde89f849f1a5 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
-/* abort()
+/* abort( void )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
 
 #ifndef REGTEST
 
-void abort()
+void abort( void )
 {
     raise( SIGABRT );
-    exit( 1 );
+    exit( EXIT_FAILURE );
 }
 
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
 
 #include <stdio.h>
 
-static void aborthandler( int signal )
+static void aborthandler( int sig )
 {
     exit( 0 );
 }
 
-int main()
+int main( void )
 {
     int UNEXPECTED_RETURN_FROM_ABORT = 0;
-    BEGIN_TESTS;
     TESTCASE( signal( SIGABRT, &aborthandler ) != SIG_ERR );
     abort();
     TESTCASE( UNEXPECTED_RETURN_FROM_ABORT );