exit function


exit causes the program to end and supplies a status code to the calling environment.
Library:   stdlib.h

Prototype: void exit(int status);

Syntax:	  
	   main()
           {
             exit(0);		/* Clean exit */
	   }

No example program.


See also:

return keyword.

atexit function.

abort function.


Top Master Index Keywords Functions


Martin Leslie