Keil Logo

__rt_exit()

4.25 __rt_exit()

Defined in rt_misc.h, the __rt_exit() function shuts down the library but does not call functions registered with atexit().

atexit()-registered functions are called by exit().
The __rt_exit() function is not part of the C library standard, but the ARM® C library supports it as an extension.

Syntax

void __rt_exit(int code);
Where code is not used by the standard function.

Usage

Shuts down the C library by calling __rt_lib_shutdown(), and then calls _sys_exit() to terminate the application. Reimplement _sys_exit() rather than __rt_exit().

Returns

This function does not return.
Related reference
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.