RAD Studio |  |

_exit

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

Copy Code

    #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++
+ | + |  |

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!