aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/tbfudf.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/tbtables/tbfudf.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/tbfudf.x')
-rw-r--r--pkg/tbtables/tbfudf.x33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/tbtables/tbfudf.x b/pkg/tbtables/tbfudf.x
new file mode 100644
index 00000000..b8083d9f
--- /dev/null
+++ b/pkg/tbtables/tbfudf.x
@@ -0,0 +1,33 @@
+include <tbset.h>
+include "tbtables.h"
+
+# tbfudf -- set elements to undefined in a FITS table
+#
+# Phil Hodge, 6-Jul-1995 Subroutine created
+
+procedure tbfudf (tp, cp, numcols, rownum)
+
+pointer tp # i: pointer to table descriptor
+pointer cp[ARB] # i: array of pointers to column descriptors
+int numcols # i: number of columns
+int rownum # i: row number
+#--
+int nelem # number of elements for a column
+int i # loop index
+int status # zero is OK
+int tbcigi()
+errchk tbferr
+
+begin
+ status = 0
+
+ do i = 1, numcols {
+
+ nelem = tbcigi (cp[i], TBL_COL_LENDATA)
+
+ call fspclu (TB_FILE(tp), COL_NUMBER(cp[i]), rownum,
+ 1, nelem, status)
+ if (status != 0)
+ call tbferr (status)
+ }
+end