“Exit” Interface Procedure
logical procedure qedit'userinit (string,len,userspace,procspace); byte array string; integer len; array workspace,procspace; option external;
This procedure is activated by the “Exit” parameter in the Interface command. When Qedit is about to terminate, it calls the Exit procedure. (Note: Exit is actually the same as the Init procedure, except that upon entry, LEN equals 4 and STRING contains the word “Exit”.)
Since this is called once upon Exit from Qedit, it can be used to complete the work of other user procedures.
Parameters of “Exit”
STRING and LEN are set to “Exit” and 4 respectively; these should not be changed. The current workfile has been closed, and no further commands can be executed.
USERSPACE and PROCSPACE: same as above (Init).
Return value: ignored.