diff options
Diffstat (limited to 'pkg/tbtables/tbfudf.x')
-rw-r--r-- | pkg/tbtables/tbfudf.x | 33 |
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 |