aboutsummaryrefslogtreecommitdiff
path: root/pkg/tbtables/fitsio/vms/ftpcbf.x
blob: bba325b2f6aa2364687056daeb8da74759dbef30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This is the VMS version.  A character string variable is passed
# to an integer array argument using %ref.

# FTPCBF -- Write a sequence of characters to a file.  The sequence may begin 
# on any byte boundary and may be any number of bytes long.

procedure ftpcbf (iunit, convrt, nbytes, array, status)

int	iunit		#I fortran unit number
int	convrt		#I convert to ASCII? (not used in SPP version)
int	nbytes		#I number of bytes to be transferred
%	character*(*)   array
int	status		#U output error status

begin
	# Write the data.  Note that we use %ref.
        call ftpbyt (iunit, nbytes, %ref (array), status)
end