- Cexit
-
In C programming language the _c_exit and _cexit functions perform cleanup operations and return without terminating the calling process. They are declared in process.h header file, and are not defined by the ANSI/ISO C standard nor POSIX.
The _c_exit function performs a quick C library termination procedure and returns to the caller without processing registered exit functions (atexit or _onexit) or flushing buffers.
In contrast, the _cexit function performs a complete C library termination procedure by calling registered exit functions in LIFO order, flushing all I/ O buffers, and closing all open streams before returning to the caller.
Both functions restore interrupt vectors altered by the startup code.
Prototype
void _c_exit(void);
void _cexit(void);
Return Value
- None
References
Categories:
Wikimedia Foundation. 2010.