| title | abort Function | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 12/01/2017 | |
| ms.technology |
|
|
| ms.topic | language-reference | |
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 3352bcc4-1a8a-4e1f-8dcc-fe30f6b50f2d | |
| author | mikeblome | |
| ms.author | mblome | |
| ms.workload |
|
The abort function, also declared in the standard include file <stdlib.h>, terminates a C++ program. The difference between exit and abort is that exit allows the C++ run-time termination processing to take place (global object destructors will be called), whereas abort terminates the program immediately. For more information, see abort in the Run-Time Library Reference.