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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

34       If  the representation was successfully stored, fegetenv() shall return
35       zero. Otherwise, it shall return a non-zero value.  If the  environment
36       was  successfully established, fesetenv() shall return zero. Otherwise,
37       it shall return a non-zero value.
38

ERRORS

40       No errors are defined.
41
42       The following sections are informative.
43

EXAMPLES

45       None.
46

APPLICATION USAGE

48       None.
49

RATIONALE

51       None.
52

FUTURE DIRECTIONS

54       None.
55

SEE ALSO

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