_sys_exit()

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

Show/hideSyntax

void _sys_exit(int return_code);

Show/hideUsage

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.

Show/hideReturns

The return code is advisory. An implementation might attempt to pass it to the execution environment.

Show/hideSee also

Reference

Using ARM® C and C++ Libraries and Floating-Point Support:

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0492F
Non-ConfidentialID091611