exit man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

EXIT(3)				    NEWLIB			       EXIT(3)

NAME
       2.17 `exit'--end program execution

SYNOPSIS
	    #include <stdlib.h>
	    void exit(int CODE);

DESCRIPTION
       Use `exit' to return control from a program to the host operating envi‐
       ronment.	 Use the argument CODE to pass an exit status to the operating
       environment:  two particular values, `EXIT_SUCCESS' and `EXIT_FAILURE',
       are defined in ``stdlib.h'' to indicate success or failure in a	porta‐
       ble fashion.

	  `exit'  does	two  kinds  of cleanup before ending execution of your
       program.	 First, it calls all application-defined cleanup functions you
       have enrolled with `atexit'.  Second, files and streams are cleaned up:
       any pending output is delivered to the host system, each open  file  or
       stream is closed, and files created by `tmpfile' are deleted.

RETURNS
       `exit' does not return to its caller.

PORTABILITY
       ANSI   C	  requires  `exit',  and  specifies  that  `EXIT_SUCCESS'  and
       `EXIT_FAILURE' must be defined.

	  Supporting OS subroutines required: `_exit'.

SEE ALSO
       exit is part of the library.  The full documentation for is  maintained
       as  a Texinfo manual.  If info and are properly installed at your site,
       the command

	      info

       will give you access to the complete manual.

NEWLIB				  April 2010			       EXIT(3)
[top]

List of man pages available for Cygwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net