Cexit
From Wikipedia, the free encyclopedia
This article does not cite any references or sources. (July 2007) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
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.
[edit] Prototype
void _c_exit(void);
void _cexit(void);
[edit] Return Value
- None
[edit] References
This article does not cite any references or sources. (March 2007) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |