_Exit


_Exit

Ends program execution without calling atexit( ) functions or signal handlers

 #include <stdlib.h> void _Exit ( int status  ); 

The _Exit( ) function terminates the program normally, but without calling any cleanup functions that you have installed using atexit( ), or signal handlers you have installed using signal( ). Exit( ) returns a status value to the operating system in the same way as the exit( ) function does.

Whether _Exit( ) flushes the program's file buffers or removes its temporary files may vary from one implementation to another.

Example

 int main (int argc, char *argv[ ]) {   if (argc < 3)   {     fprintf(stderr, "Missing required arguments.\n");     _Exit(-1);   }   /* ... */ } 

See Also

abort( ), exit( ), atexit( ), raise( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net