qc.hlp (Table of Contents; Topic list)
_fpreset
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _fpreset function reinitializes the floating-point-math
     package. This function is usually used in conjunction with signal,
     system, or the exec or spawn functions.
 
     If a program traps floating-point error signals (SIGFPE) with the
     signal function, it can safely recover from floating-point errors
     by invoking _fpreset and using longjmp.
 
     In MS-DOS versions prior to 3.0, a child process executed by exec,
     spawn, or system may affect the floating-point state of the parent
     process if an 8087 or 80287 coprocessor is used. Therefore, if you
     are using either coprocessor, the following precautions are
     recommended:
 
        ■ The exec, spawn, and system functions should not be called
          during the evaluation of a floating-point expression.
 
        ■ The _fpreset function should be called after these routines
          if there is a possibility of the child process performing any
          floating-point operations.
 
     Return Value
 
     None.
                                    -♦-