quick_exit
Causes normal program termination to occur.
Syntax
__declspec(noreturn) void quick_exit(
int status
);
Parameters
status
The status code to return to the host environment.
Return value
The quick_exit
function can't return to its caller.
Remarks
The quick_exit
function causes normal program termination. It calls no functions registered by atexit
, _onexit
or signal handlers registered by the signal
function. Behavior is undefined if quick_exit
is called more than once, or if the exit
function is also called.
The quick_exit
function calls, in last-in, first-out (LIFO) order, the functions registered by at_quick_exit
, except for those functions already called when the function was registered. Behavior is undefined if a longjmp
call is made during a call to a registered function that would terminate the call to the function.
After the registered functions have been called, quick_exit
invokes _Exit
by using the status
value to return control to the host environment.
Requirements
Routine | Required header |
---|---|
quick_exit |
<process.h> or <stdlib.h> |
For more information about compatibility, see Compatibility.
See also
Process and environment control
abort
atexit
_exec
, _wexec
functions
exit
, _Exit
, _exit
_onexit
, _onexit_m
_spawn
, _wspawn
functions
system
, _wsystem
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho