www.delorie.com/djgpp/doc/libc/libc_297.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_Exit

Syntax

 
#include <stdlib.h>

void _Exit(int exit_code);

Description

This function exits the program, returning exit_code to the calling process. No additional processing (such as closing file descriptors or calls to the static destructor functions) is done, and any atexit functions are not called; only the hardware interrupt handlers are unhooked, to prevent system crashes.

Return Value

This function does not return.

Portability

ANSI/ISO C C99 (see note 1); not C89
POSIX 1003.1-2001; not 1003.2-1992

Notes:

  1. Depending on the implementation, _Exit may do the additional processing described above.

Example

 
if (argc < 4)
{
  print_usage();
  _Exit(1);
}

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004