The abort()
function is probably your best bet. It’s part of the C standard library, and is defined as “causing abnormal program termination” (e.g, a fatal error or crash).
More Related Contents:
- My program is crahing, and honestly i am confused (c++)
- C++ Runtime Terminates std::out_of_range [closed]
- How to automatically generate a stacktrace when my program crashes
- Is there any way a C/C++ program can crash before main()?
- Exception Error c0000005 in VC++
- Preventing a MEX file from crashing in MATLAB
- Dereferencing deleted pointers always result in an Access Violation?
- Why are all my C++ programs exiting with 0xc0000139?
- How to pass private class member by constant reference? [closed]
- How do you compile C++ on a mac?
- How do inline variables work?
- How approximation search works
- static const vs #define
- comparing iterators from different containers
- Start Windows Service From Application without Admin right(c++)
- Cross-platform way to get line number of an INI file where given option was found
- Benefits of ternary operator vs. if statement
- How would I load a PNG image using Win32/GDI (no GDI+ if possible)?
- Behavior when dereferencing the .end() of a vector of strings
- How to use C++11 enum class for flags
- Strong typedefs [duplicate]
- GCC C++ pow accuracy
- variable or field declared void
- Scope with Brackets in C++
- How can I use ANSI Escape Codes for outputting colored text in C and C++?
- How to disable warnings for particular include files?
- C++ range/xrange equivalent in STL or boost?
- Portable text based console manipulator
- How to write an object to file in C++
- if constexpr – why is discarded statement fully checked?