Everything

fesetexceptflag


Sets the state of an exception flag.

[Format]

#include <fenv.h>

long fesetexceptflag(const fexcept_t *f, long e);

[Parameters]

f Pointer to the source location from which the exception flag state is to be acquired

e Value indicating the exception flag whose state is to be set

[Return values]

Normal: 0

Abnormal: Nonzero

[Remarks]

Before calling the fesetexceptflag function, specify a flag state in the source location through the fegetexceptflag function.

The fesetexceptflag function only sets the flag state without generating the corresponding floating-point exception.

Do not use this function when compiler option nofpu is selected. If used, the function returns a nonzero value, which indicates an abnormality.