Cexit

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


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Программная конвейеризация — циклов (англ. software pipelining)  это техника, используемая компиляторами, для оптимизации циклов, по аналогии с вычислительным конвейером в микропроцессорах. Является формой внеочередного исполнения с той разницей, что… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”