Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>_fpreset() reinitialize floating-point math package</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fpreset()              Reinitialize Floating-Point Math Package

 #include   <float.h>

 void       _fpreset(void);

    _fpreset() resets the floating-point math package.  This is
    particularly valuable if a program using the 8087/80287 coprocessor
    runs under versions 1.x of MS-DOS, because a child process loaded and
    executed by system(), exec...(), or spawn...() might change the
    floating-point state of the calling process.

    A program that uses the 8087/80287 numeric coprocessor should avoid
    calling exec...(), spawn...(), or system() during evaluation of a
    floating-point expression and should call  _fpreset() after any of
    these calls if it is possible that the child process used the numeric
    coprocessor to perform a floating-point operation.

       Returns:     Nothing


See Also: exec...() spawn...() system()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson