Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
abort
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The abort function prints the message
abnormal program termination
to stderr, then calls raise( SIGABRT ). The action taken in
response to the SIGABRT signal depends on what action has been
defined for that signal in a prior call to the signal function.
The default SIGABRT action is for the calling process to terminate
with exit code 3, returning control to the parent process or
operating system.
The abort function does not flush stream buffers or perform atexit
or onexit processing.
In multithread libraries, the abort function does not call
raise( SIGABRT ). Instead, it simply terminates the process with
exit code 3.
Return Value
The abort function does not return control to the caller. Rather,
it terminates the process and, by default, returns an exit code
of 3 to the parent process or operating system.
-♦-