home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsa / armedit / Code / ARMFILE_H next >
Encoding:
Text File  |  1996-01-12  |  1.7 KB  |  54 lines

  1. /*
  2.     File        : armfile.h
  3.     Date        : 12/1/96
  4.     Author        : © A.Thoukydides, 1995, 1996
  5.     Description    : Transfer of files between DOS and RISC OS.
  6. */
  7.  
  8. // Only include header file once
  9. #ifndef ARMFILE_H
  10. #define ARMFILE_H
  11.  
  12. // Variable to contain any error message
  13. extern char armfile_error[256];
  14.  
  15. /*
  16.     Parameters    : src    - The source DOS file.
  17.                   dest    - The destination RISC OS file.
  18.     Returns        : int    - Standard C return code giving status of operation.
  19.     Description    : Copy a file from DOS to RISC OS. If there is an error then
  20.                   it is stored in the variable armfile_error and a non-zero
  21.                   value is returned, otherwise zero is returned.
  22. */
  23. int armfile_copy_dos_riscos(const char *src, const char *dest);
  24.  
  25. /*
  26.     Parameters    : src    - The source RISC OS file.
  27.                   dest    - The destination DOS file.
  28.     Returns        : int    - Standard C return code giving status of operation.
  29.     Description    : Copy a file from RISC OS to DOS. If there is an error then
  30.                   it is stored in the variable armfile_error and a non-zero
  31.                   value is returned, otherwise zero is returned.
  32. */
  33. int armfile_copy_riscos_dos(const char *src, const char *dest);
  34.  
  35. /*
  36.     Parameters    : src    - The source DOS filename.
  37.                   dest    - The resulting RISC OS filename.
  38.     Returns        : void
  39.     Description    : Perform character translation from DOS to RISC OS
  40.                   filenames.
  41. */
  42. void armfile_translate_dos_riscos(const char *src, char *dest);
  43.  
  44. /*
  45.     Parameters    : src    - The source RISC OS filename.
  46.                   dest    - The resulting DOS filename.
  47.     Returns        : void
  48.     Description    : Perform character translation from RISC OS to DOS
  49.                   filenames.
  50. */
  51. void armfile_translate_riscos_dos(const char *src, char *dest);
  52.  
  53. #endif
  54.