aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/threed/txtable/generic/txthvb.x
blob: eb7af9adac27a6578cafb892f33aae3e343a86dc (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 txthvb (otp, col, buf)

pointer	otp		# i: table descriptor
int	col		# i: column number in input table
bool	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 tbhadb (otp, Memc[keyword], buf)

	call mfree (keyword, TY_CHAR)
end