aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/photcal/parser/prcat.x
blob: d8317f736578e98eaaedd239b496f1b09f2917a8 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
# PR_CAT2 - Concatenate two strings

procedure pr_cat2 (str1, str2, outstr, maxch)

char	str1[ARB], str2[ARB]		# input strings
char	outstr[ARB]			# output string
int	maxch				# max output chars

begin
	call strcpy (str1, outstr, maxch)
	call strcat (str2, outstr, maxch)
end


# PR_CAT3 - Concatenate three strings

procedure pr_cat3 (str1, str2, str3, outstr, maxch)

char	str1[ARB], str2[ARB], str3[ARB]	# input strings
char	outstr[ARB]			# output string
int	maxch				# max output chars

begin
	call strcpy (str1, outstr, maxch)
	call strcat (str2, outstr, maxch)
	call strcat (str3, outstr, maxch)
end


# PR_CAT4 - Concatenate four strings

procedure pr_cat4 (str1, str2, str3, str4, outstr, maxch)

char	str1[ARB], str2[ARB], str3[ARB], str4[ARB]	# input strings
char	outstr[ARB]					# output string
int	maxch						# max output chars

begin
	call strcpy (str1, outstr, maxch)
	call strcat (str2, outstr, maxch)
	call strcat (str3, outstr, maxch)
	call strcat (str4, outstr, maxch)
end