Keil Logo

_sys_exit()

4.41 _sys_exit()

Defined in rt_sys.h, this is the library exit function. All exits from the library eventually call _sys_exit().

Syntax

void _sys_exit(int return_code);

Usage

This function must not return. You can intercept application exit at a higher level by either:
  • Implementing the C library function exit() as part of your application. You lose atexit() processing and library shutdown if you do this.
  • Implementing the function __rt_exit(int n) as part of your application. You lose library shutdown if you do this, but atexit() processing is still performed when exit() is called or main() returns.

Returns

The return code is advisory. An implementation might attempt to pass it to the execution environment.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.