aboutsummaryrefslogtreecommitdiff
path: root/unix/os/zzexit.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/os/zzexit.c
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'unix/os/zzexit.c')
-rw-r--r--unix/os/zzexit.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/unix/os/zzexit.c b/unix/os/zzexit.c
new file mode 100644
index 00000000..a54cfc38
--- /dev/null
+++ b/unix/os/zzexit.c
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+
+#define import_spp
+#include <iraf.h>
+
+/*
+ * ZZEXIT.C -- Fortran callable exit procedure. Some systems (e.g. libf2c)
+ * require this procedure. We implement it as a separate library procedure
+ * so that it can be replaced by a user exit procedure.
+ */
+int
+exit_ (code)
+XINT *code;
+{
+ exit (*code);
+ return (XOK);
+}