GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing cplusplus.com — abort Reference
<cstdlib> (stdlib.h)
function
<cstdlib>
abortvoid abort (void); [[noreturn]] void abort() noexcept; Abort current process
The function raises the SIGABRT signal (as if raise(SIGABRT) was called). This, if uncaught, causes the program to terminate returning a platform-dependent unsuccessful termination error code to the host environment.The program is terminated without destroying any object and without calling any of the functions passed to atexit or at_quick_exit. ParametersnoneReturn Valuenone (the function never returns).Example
If myfile.txt does not exist, a message is printed and abort is called. Data racesConcurrently calling this function is safe, causing no data races.Note though that its handling process may affect all threads. Exceptions (C++)If no function handlers have been defined with signal to handle SIGABRT, the function never throws exceptions (no-throw guarantee).Otherwise, the behavior depends on the particular library implementation. See also
Home page | Privacy policy
© cplusplus.com, 2000-2026 - All rights reserved - v3.3.4s Spotted an error? contact us | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |