summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/atexit.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/atexit.c')
-rw-r--r--contrib/syslinux-4.02/com32/lib/atexit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/atexit.c b/contrib/syslinux-4.02/com32/lib/atexit.c
new file mode 100644
index 0000000..804790e
--- /dev/null
+++ b/contrib/syslinux-4.02/com32/lib/atexit.c
@@ -0,0 +1,10 @@
+/*
+ * atexit.c
+ */
+
+#include <stdlib.h>
+
+int atexit(void (*fctn) (void))
+{
+ return on_exit((void (*)(int, void *))fctn, NULL);
+}