Exit (0), exit (1), exit-1)

Source: Internet
Author: User

Exit is a database function. If it is set to 0, it Exits normally. If it is set to not 0, it exits abnormally.

If it is a sub-process, you can use GetExitCodeProcess to obtain the exit code and then process it.

 

Exit () causes the program to terminate normally immediately. If the status value is 0, the program Exits normally. If the value is not zero, an execution error occurs. Call exit () to clear and close all

Open File, write any buffer output, and call all programs registered with atexit () to terminate the function.

 

Related functions:
_ Exit () When terminating a program, no files are closed, no buffers are cleared, and no termination function is called.
The abort () program stops running, does not clear the file, and returns to the call process. It is generally used to prevent the program from getting out of control,

However, in an object-oriented environment, because exit () and abort () do not destroy objects, do not use abort () and exit () in the object-oriented environment ().

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.