home *** CD-ROM | disk | FTP | other *** search
- /*
- File : armfile.h
- Date : 12/1/96
- Author : © A.Thoukydides, 1995, 1996
- Description : Transfer of files between DOS and RISC OS.
- */
-
- // Only include header file once
- #ifndef ARMFILE_H
- #define ARMFILE_H
-
- // Variable to contain any error message
- extern char armfile_error[256];
-
- /*
- Parameters : src - The source DOS file.
- dest - The destination RISC OS file.
- Returns : int - Standard C return code giving status of operation.
- Description : Copy a file from DOS to RISC OS. If there is an error then
- it is stored in the variable armfile_error and a non-zero
- value is returned, otherwise zero is returned.
- */
- int armfile_copy_dos_riscos(const char *src, const char *dest);
-
- /*
- Parameters : src - The source RISC OS file.
- dest - The destination DOS file.
- Returns : int - Standard C return code giving status of operation.
- Description : Copy a file from RISC OS to DOS. If there is an error then
- it is stored in the variable armfile_error and a non-zero
- value is returned, otherwise zero is returned.
- */
- int armfile_copy_riscos_dos(const char *src, const char *dest);
-
- /*
- Parameters : src - The source DOS filename.
- dest - The resulting RISC OS filename.
- Returns : void
- Description : Perform character translation from DOS to RISC OS
- filenames.
- */
- void armfile_translate_dos_riscos(const char *src, char *dest);
-
- /*
- Parameters : src - The source RISC OS filename.
- dest - The resulting DOS filename.
- Returns : void
- Description : Perform character translation from RISC OS to DOS
- filenames.
- */
- void armfile_translate_riscos_dos(const char *src, char *dest);
-
- #endif
-