diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/tbtables/tbfdel.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/tbfdel.x')
-rw-r--r-- | pkg/tbtables/tbfdel.x | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/tbtables/tbfdel.x b/pkg/tbtables/tbfdel.x new file mode 100644 index 00000000..822590d8 --- /dev/null +++ b/pkg/tbtables/tbfdel.x @@ -0,0 +1,31 @@ +include "tbtables.h" + +# tbfdel -- delete FITS table +# This routine deletes the current HDU in a FITS file, closes the FITS +# file, and frees the memory allocated by the table I/O routines. +# +# Phil Hodge, 6-Jul-1995 Subroutine created + +procedure tbfdel (tp) + +pointer tp # io: pointer to table descriptor +#-- +int status # zero is OK +int hdutype # type of next HDU (ignored) +errchk tbferr + +begin + status = 0 + + # Delete the current HDU. + call fsdhdu (TB_FILE(tp), hdutype, status) + + if (status != 0) + call tbferr (status) + + # Close the FITS file. This sets TB_FILE to NULL. + call tbfclo (tp) + + # Free memory. + call tbtclo (tp) +end |