NAME

exit - terminate a process

SYNOPSIS

#include "zkStdlib.h"

void exit(int status);

DESCRIPTION

The exit() function first calls all functions registered by atexit(). It then flushes all output streams, closes all open streams, and removes all files created by tmpfile(). Finally, control is returned to the host environment. The values of status can be EXIT_SUCCESS or EXIT_FAILURE, as described in "zkStdlib.h", or any implementation-dependent value.

The exit() function may also perform additional platform-specific processing. Refer to the documentation for the target platform for more information.

If exit() is called more than once, the effects are undefined.

RETURN VALUE

These functions do not return.

ERRORS

No errors are defined.