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 /pkg/tbtables/tbfudf.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
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 |