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.



Martin Leslie

AltStyle によって変換されたページ (->オリジナル) /