dos_compilers/Logitech Modula-2 v34/M2LIB/DEF/LOADPATH.DEF
2024-07-02 07:25:31 -07:00

25 lines
672 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.