home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
037.lha
/
DU
/
MyType.def
< prev
next >
Wrap
Text File
|
1987-05-16
|
1KB
|
39 lines
DEFINITION MODULE MyType;
(* Written by Greg Browne from ideas in duIII.c - many thanks to
Chris Nicotra, Dave Jobusch, Ed Alford, and many others whose
names I have not seen on the source files who have worked on
the development and extension of that fine directory utility program.
PURPOSE A self-contained, IMPORTable pair of procedures to allow
a screen display - or printer copy - in Hex or ASCII of
any disk files.
CHANGES 1/24/87 Built original.
4/25/87 Added restart at beginning option.
45/11/87 Compacted some redundant code 4 speed.
*)
(*COMMENTS*)
(* This module tries to open the DOSLibrary for use in case it is not open.
IT DOES NOT CLOSE IT. The user is left with that chore. *)
(* All constants and variables are internal. Nothing but two PROCEDURES
are available to the user. *)
PROCEDURE DisplayASCII(VAR filnam:ARRAY OF CHAR;ToScreen:BOOLEAN);
(* Produces an ASCII dump of a file - either to the screen,
if ToScreen is TRUE, or to the PRT: device if ToScreen
is FALSE. The filename is any literal or variable *)
PROCEDURE DisplayHex(VAR filnam:ARRAY OF CHAR;ToScreen:BOOLEAN);
(* Same stuff only in 'filezap' style hex dump format *)
END MyType.