From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- pkg/tbtables/tbfpcm.x | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkg/tbtables/tbfpcm.x (limited to 'pkg/tbtables/tbfpcm.x') diff --git a/pkg/tbtables/tbfpcm.x b/pkg/tbtables/tbfpcm.x new file mode 100644 index 00000000..db96671c --- /dev/null +++ b/pkg/tbtables/tbfpcm.x @@ -0,0 +1,27 @@ +include "tbtables.h" + +# tbfpcm -- add a comment to a FITS header parameter +# This adds a comment to a header parameter, or replaces one that is +# already there. It is an error if the header parameter is not found. +# +# Phil Hodge, 6-Jul-1995 Subroutine created + +procedure tbfpcm (tp, keyword, comment) + +pointer tp # i: pointer to table descriptor +char keyword[ARB] # i: keyword to be found +char comment[ARB] # i: comment string for keyword +#-- +int status # 0 is OK +errchk tbferr + +begin + if (comment[1] == EOS) + return + + status = 0 + + call fsmcom (TB_FILE(tp), keyword, comment, status) + if (status != 0) + call tbferr (status) +end -- cgit