diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/os/zzexit.c | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'unix/os/zzexit.c')
-rw-r--r-- | unix/os/zzexit.c | 17 |
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); +} |