The quick_exit() function is defined in the stdlib header file. The quick_exit() function is used for normal termination of a process without completely cleaning the resources.
- If val is zero or EXIT_SUCCESS, it shows successful termination of program.
- If the value is non-zero or EXIT_FAILURE, it shows that the program is not successfully terminated. These functions are called in the reverse order of there calling.
void quick_exit(int val);
Parameter: This method takes a single parameter val which is an integral value that represent the exit status of a program.
Return Value: This function doesn’t returns anything.
Below program illustrate the quick_exit() function in C++:
Exit Function 2 Exit Function 1
- wcslen() function in C++ with Examples
- wcsspn() function in C/C++ with Examples
- btowc() function in C/C++ with Examples
- wcscmp() function in C++ with Examples
- wcscpy() function in C++ with Examples
- conj() function in C++ with Examples
- norm() function in C++ with Examples
- not1 and not2 function templates in C++ STL with Examples
- Function Overloading vs Function Overriding in C++
- What happens when a virtual function is called inside a non-virtual function in C++
- negative_binomial_distribution in C++ with Examples
- mbrtoc32() in C/C++ with Examples
- mbrtoc16() in C/C++ with Examples
- wmemset() in C/C++ with Examples
- cauchy_distribution a() in C++ with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : ManasChhabra2