C Language and Libraries Help (clang.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_fpreset
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
─────Run-Time Library───────────────────────────────────────────────────────
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, 80287, or 80387 coprocessor is
used. Therefore, if you are using one of these coprocessors, 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.
-♦-