blob: 6ffb377334be2d4f98ea20305afa0b96791dc5d5 (
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 txthvt (otp, col, buf)
pointer otp # i: table descriptor
int col # i: column number in input table
char buf[ARB] # i: value to be written
#--
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 tbhadt (otp, Memc[keyword], buf)
call mfree (keyword, TY_CHAR)
end
|