aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/threed/txtable/generic/txthvr.x
blob: 17c4693ecd8c40d7515172bd0a0899cea108364b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# TXTHV  --  Write scalar value into header.
#
#
#
#
#  Revision history:
#  ----------------
#
#  22-Nov-96  -  Task created (I.Busko)

procedure txthvr (otp, col, buf)

pointer	otp		# i: table descriptor
int	col		# i: column number in input table
real	buf
#--
pointer	keyword

begin
	# Use original column number to build keyword name.
	call malloc (keyword, SZ_LINE, TY_CHAR)
	call sprintf (Memc[keyword], SZ_LINE, "TCV_%03d")
	    call pargi (col)

	call tbhadr (otp, Memc[keyword], buf)

	call mfree (keyword, TY_CHAR)
end