dos_compilers/Manx Aztec C86 v52a/LIB/STDLIB/ABORT.C

33 lines
730 B
C++
Raw Normal View History

2024-07-02 17:25:54 +02:00
/* Copyright 1989 Manx Software Systems, Inc. All rights reserved */
/*
* Synopsis
*
* void abort(void);
*
*
* Description
*
* The abort function causes abnormal program termination to occur, unless
* the signal SIGABRT is being caught and the signal handler does not return.
* Whether open output streams are flushed or open streams are closed or
* temporary files removed is implementation-defined. An implementation-
* defined form of the status unsuccessful termination is returned to the host
* environment by means of the function call raise(SIGABRT).
*
*
* Returns
*
* The abort function cannot return to its caller.
*/
#include <stdlib.h>
#include <signal.h>
void
abort(void)
{
raise(SIGABRT);
}