From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/FUNCTIONS/atexit.htm | 81 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 reference/C/FUNCTIONS/atexit.htm (limited to 'reference/C/FUNCTIONS/atexit.htm') diff --git a/reference/C/FUNCTIONS/atexit.htm b/reference/C/FUNCTIONS/atexit.htm new file mode 100644 index 0000000..330fabf --- /dev/null +++ b/reference/C/FUNCTIONS/atexit.htm @@ -0,0 +1,81 @@ +ATEXIT function + + + + + + +
+
+

ATEXIT function

+
+
+atexit regesters a function to be executed when the program +terminates normally. +

+


+
+
+	Library:   stdlib.h
+
+	Prototype: int atexit(void (*function)(void));
+
+	Syntax:    void End(void);
+        
+                   main()
+                   {
+                     atexit(End);
+                   }
+
+                   void End(void)
+                   {
+                     printf("The End\n");
+                   }
+
+
+ +
+Please see +function pointers +for information on how this works. + +

+


+

Examples:

+ + example +program. + +
+

See Also:

+ + exit function.

+ abort function.

+ +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + + -- cgit v1.2.3-54-g00ecf