This commit was generated by cvs2svn to compensate for changes in r1815,
[bootcd.git] / syslinux / com32 / lib / atexit.c
diff --git a/syslinux/com32/lib/atexit.c b/syslinux/com32/lib/atexit.c
new file mode 100644 (file)
index 0000000..078dd8b
--- /dev/null
@@ -0,0 +1,10 @@
+/*
+ * atexit.c
+ */
+
+#include <stdlib.h>
+
+int atexit(void (*fctn)(void))
+{
+  return on_exit((void (*)(int, void *))fctn, NULL);
+}