_exit (C++)

De RAD Studio
Aller à : navigation, rechercher

Remonter à Stdlib.h - Index


Header File

stdlib.h

Category

Process Control Routines

Prototype

void _exit(int status);

Description

Terminates program.

_exit terminates execution without closing any files, flushing any output, or calling any exit functions.

The calling process uses status as the exit status of the process. Typically a value of 0 is used to indicate a normal exit, and a nonzero value indicates some error.

Return Value

None.

Example

#include   <stdlib.h>
#include   <stdio.h>
void done(void);
int main(void)
{
   atexit(done);
   _exit(0);
   return 0;
}
void done()
{
   printf("hello\n");
}

Portability

POSIX Win32 ANSI C ANSI C++

+

+


See Also