1FEGETENV(P)                POSIX Programmer's Manual               FEGETENV(P)
2
3
4

NAME

6       fegetenv, fesetenv - get and set current floating-point environment
7

SYNOPSIS

9       #include <fenv.h>
10
11       int fegetenv(fenv_t *envp);
12       int fesetenv(const fenv_t *envp);
13
14

DESCRIPTION

16       The  fegetenv()  function  shall attempt to store the current floating-
17       point environment in the object pointed to by envp.
18
19       The fesetenv() function shall attempt to establish  the  floating-point
20       environment  represented by the object pointed to by envp. The argument
21       envp shall point to an object set by a call to fegetenv() or  feholdex‐
22       cept(),  or  equal  a  floating-point environment macro. The fesetenv()
23       function does not raise floating-point exceptions,  but  only  installs
24       the  state  of  the floating-point status flags represented through its
25       argument.
26

RETURN VALUE

28       If the representation was successfully stored, fegetenv() shall  return
29       zero.  Otherwise, it shall return a non-zero value.  If the environment
30       was successfully established, fesetenv() shall return zero.  Otherwise,
31       it shall return a non-zero value.
32

ERRORS

34       No errors are defined.
35
36       The following sections are informative.
37

EXAMPLES

39       None.
40

APPLICATION USAGE

42       None.
43

RATIONALE

45       None.
46

FUTURE DIRECTIONS

48       None.
49

SEE ALSO

51       feholdexcept()  ,  feupdateenv()  ,  the  Base  Definitions  volume  of
52       IEEE Std 1003.1-2001, <fenv.h>
53
55       Portions of this text are reprinted and reproduced in  electronic  form
56       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
57       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
58       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
59       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
60       event of any discrepancy between this version and the original IEEE and
61       The Open Group Standard, the original IEEE and The Open Group  Standard
62       is  the  referee document. The original Standard can be obtained online
63       at http://www.opengroup.org/unix/online.html .
64
65
66
67IEEE/The Open Group                  2003                          FEGETENV(P)
Impressum