dos_compilers/Logitech Modula-2 v34/M2LIB/DEF/LOADPATH.DEF

25 lines
672 B
Plaintext
Raw Normal View History

2024-07-02 16:25:31 +02:00
DEFINITION MODULE LoadPath;
(*
NOTE: The following procedure can only work under
DOS version 3.1 and upper.
*)
PROCEDURE GetLoad(VAR str: ARRAY OF CHAR);
(* Get the complete filename of the file loaded by MSDOS
In the environnement:
- Look for the sequence 0,0
- Skip two bytes ( meaning unknown, often 1,0 )
- Take next characters until a 0
Return empty string if:
- Doesn't find 0,0
- filename > HIGH(str)
*)
PROCEDURE GetLoadDir(VAR str: ARRAY OF CHAR);
(* Return the directory of the loaded file or empty string
if problems
*)
END LoadPath.