_FPTerm

Syntax

void _FPTerm(lpOldFPSigHandler)

This function restores the floating-point exception-handler routine that was in effect when a DLL called the _FPInit function to initialize the floating-point emulator or coprocessor. Only DLLs need to call this function.

Parameter Type/Description  

lpOldFPSigHandler void far * Points to the floating-point exception handler to be restored.,  

Return Value

None.

Comments

A DLL must ensure that the floating-point emulator or coprocessor has been initialized before making any function calls that use floating-point arithmetic. If a task that does not initialize the floating-point emulator or coprocessor can call the DLL, or if it is possible that the task's floating-point exception handler does not handle floating-point exceptions appropriately for the DLL, the DLL must call the _FPInit function to initialize the emulator or coprocessor. Before returning control to the calling task, the DLL must call the _FPTerm function to restore the previous exception handler.