;***************************************************************************;
; ;
; COPY.SBR ;
; AlphaBASIC XCALL to copy a file ;
; ;
;***************************************************************************;
;Copyright (C) 1988 UltraSoft Corp. All Rights Reserved.
;
;Written by: David Pallmann
;
;Copy a file and return status.
;
; XCALL COPY, source_file$, dest_file$, status {, size}
;
;Where: source_file$ .......... is a string containing the full or partial
; specification of the source file to copy.
; dest_file$ ............ is a string containing the full or partial
; specification of the destination file.
; status ................ is a floating point variable. Set to -1
; normally, or 0 if an error occurs.
; size .................. is an optional floating point variable. If
; specified, the size of the file is returned
; in blocks.
;Notes:
;
; o if string literals (e.g. "TEST.DAT ") are used instead of string
; variables for source and destination filespecs, a trailing space
; (as shown two lines above) is required - else you'll receive a
; file specification error from AMOS.
; o compatible with LOKSER.
; o compatible with AMOS 2.0 & the extended file system.
;
;1.0(100) 01-Jun-87 created. /DFP
;1.0(101) 01-Jul-88 support random files. /DFP