From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/imio/dbc/imdrmcom.x | 96 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 sys/imio/dbc/imdrmcom.x (limited to 'sys/imio/dbc/imdrmcom.x') diff --git a/sys/imio/dbc/imdrmcom.x b/sys/imio/dbc/imdrmcom.x new file mode 100644 index 00000000..4a10f2df --- /dev/null +++ b/sys/imio/dbc/imdrmcom.x @@ -0,0 +1,96 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include "idbc.h" + +# IMDRMCOM -- Remove the comment field for a keyword. + +procedure imdrmcom (im, key) + +pointer im #I image descriptor +char key[ARB] #I parameter to be set + +bool string_valued +int ch, i, ti, j, n +pointer rp, ip, op, sp, val, start, text, cmmt +int idb_findrecord() +errchk syserrs + +begin + call smark (sp) + call salloc (val, SZ_LINE, TY_CHAR) + call salloc (text, SZ_LINE, TY_CHAR) + call salloc (cmmt, SZ_LINE, TY_CHAR) + + # Find the record. + if (idb_findrecord (im, key, rp) == 0) + call syserrs (SYS_IDBKEYNF, key) + + for (i=0; i