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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       fegetenv, fesetenv — get and set current floating-point environment
14

SYNOPSIS

16       #include <fenv.h>
17
18       int fegetenv(fenv_t *envp);
19       int fesetenv(const fenv_t *envp);
20

DESCRIPTION

22       The functionality described on this reference page is aligned with  the
23       ISO C  standard.  Any  conflict between the requirements described here
24       and the ISO C standard is unintentional. This  volume  of  POSIX.1‐2008
25       defers to the ISO C standard.
26
27       The  fegetenv()  function  shall attempt to store the current floating-
28       point environment in the object pointed to by envp.
29
30       The fesetenv() function shall attempt to establish  the  floating-point
31       environment represented by the object pointed to by envp.  The argument
32       envp shall point to an object set by a call to fegetenv() or  feholdex‐
33       cept(),  or  equal  a  floating-point environment macro. The fesetenv()
34       function does not raise floating-point exceptions,  but  only  installs
35       the  state  of  the floating-point status flags represented through its
36       argument.
37

RETURN VALUE

39       If the representation was successfully stored, fegetenv() shall  return
40       zero.  Otherwise, it shall return a non-zero value.  If the environment
41       was successfully established, fesetenv() shall return zero.  Otherwise,
42       it shall return a non-zero value.
43

ERRORS

45       No errors are defined.
46
47       The following sections are informative.
48

EXAMPLES

50       None.
51

APPLICATION USAGE

53       None.
54

RATIONALE

56       None.
57

FUTURE DIRECTIONS

59       None.
60

SEE ALSO

62       feholdexcept(), feupdateenv()
63
64       The Base Definitions volume of POSIX.1‐2008, <fenv.h>
65
67       Portions  of  this text are reprinted and reproduced in electronic form
68       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
69       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
70       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
71       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
72       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
73       event of any discrepancy between this version and the original IEEE and
74       The Open Group Standard, the original IEEE and The Open Group  Standard
75       is  the  referee document. The original Standard can be obtained online
76       at http://www.unix.org/online.html .
77
78       Any typographical or formatting errors that appear  in  this  page  are
79       most likely to have been introduced during the conversion of the source
80       files to man page format. To report such errors,  see  https://www.ker
81       nel.org/doc/man-pages/reporting_bugs.html .
82
83
84
85IEEE/The Open Group                  2013                         FEGETENV(3P)
Impressum