Defined in header
_Noreturn void abort(void);
Causes abnormal program termination unless SIGABRT is being caught by a signal handler passed to signal and the handler does not return.
Functions passed to atexit() are not called. Whether open resources such as files are closed is implementation defined. An implementation defined status is returned to the host environment that indicates unsuccessful execution.
 Return value
POSIX specifies that the abort() function overrides blocking or ignoring the SIGABRT signal.
error opening file data.txt in function main()
- C11 standard (ISO/IEC 9899:2011):
- 184.108.40.206 The abort function (p: 350)
- C99 standard (ISO/IEC 9899:1999):
- 220.127.116.11 The abort function (p: 315)
- C89/C90 standard (ISO/IEC 9899:1990):
- 18.104.22.168 The abort function
 See also
| causes normal program termination with cleaning up |
| registers a function to be called on exit() invocation |
| causes normal program termination without completely cleaning up |
C++ documentation for abort