aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/tbfpcm.x
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tbtables/tbfpcm.x')
-rw-r--r--pkg/tbtables/tbfpcm.x27
1 files changed, 27 insertions, 0 deletions
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