From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- pkg/tbtables/tbfudf.x | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkg/tbtables/tbfudf.x (limited to 'pkg/tbtables/tbfudf.x') 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 +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 -- cgit