ONEXIT |
Top Previous Next |
Syntax ONEXIT(fn as UINT,pData as POINTER) Description Adds a subroutine to the on-exit list. Parameters fn - Address of subroutine. pData - Pointer to user data or NULL Return value None Remarks The functions in the on-exit list are called in LIFO (Last In First Out) order when your program exits. The DECLARE for an on-exit function must include one parameter of type POINTER. A subroutine can be added more than once. Example usage ONEXIT(&myfunc1,NULL) |