1fegetexceptflag(3M)     Mathematical Library Functions     fegetexceptflag(3M)
2
3
4

NAME

6       fegetexceptflag,  fesetexceptflag  -  get and set floating-point status
7       flags
8

SYNOPSIS

10       cc [ flag... ] file... -lm [ library... ]
11       #include <fenv.h>
12
13       int fegetexceptflag(fexcept_t *flagp, int excepts);
14
15
16       int fesetexceptflag(const fexcept_t *flagp, int excepts);
17
18

DESCRIPTION

20       The fegetexceptflag() function attempts  to  store  an  implementation-
21       defined representation of the states of the floating-point status flags
22       indicated by the excepts argument in the object pointed to by the flagp
23       argument.
24
25
26       The  fesetexceptflag() function attempts to set the floating-point sta‐
27       tus flags indicated by the excepts argument to the states stored in the
28       object  pointed  to  by  flagp. The value pointed to by flagp will have
29       been set by a previous call to fegetexceptflag() whose second  argument
30       represented at least those floating-point exceptions represented by the
31       excepts argument. This function does not  raise  floating-point  excep‐
32       tions but only sets the state of the flags.
33

RETURN VALUES

35       If   the  representation  was  successfully  stored,  fegetexceptflag()
36       returns 0. Otherwise, it returns a non-zero value.
37
38
39       If the excepts argument is 0 or if all the  specified  exceptions  were
40       successfully  set, fesetexceptflag() returns 0. Otherwise, it returns a
41       non-zero value.
42

ERRORS

44       No errors are defined.
45

ATTRIBUTES

47       See attributes(5) for descriptions of the following attributes:
48
49
50
51
52       ┌─────────────────────────────┬─────────────────────────────┐
53       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
54       ├─────────────────────────────┼─────────────────────────────┤
55       │Interface Stability          │Standard                     │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │MT-Level                     │MT-Safe                      │
58       └─────────────────────────────┴─────────────────────────────┘
59

SEE ALSO

61       fenv.h(3HEAD),   feclearexcept(3M),   feraiseexcept(3M),   fesetexcept‐
62       flag(3M), attributes(5), standards(5)
63
64
65
66SunOS 5.11                        1 Sep 2002               fegetexceptflag(3M)
Impressum