FECLEAREXCEPT(3P)

πŸ¦‹ FECLEAREXCEPT(3P) β€” POSIX Programmer's Manual πŸ¦‹

okay bestie, welcome to the POSIX Programmer's Manual, we're doing feclearpexcept today and it's lowkey one of the most chill functions in <fenv.h>. πŸ’–


🌸 PROLOG 🌸

Real talk before we start: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ β€” so if you're on Linux, go peek at the corresponding Linux manual page for the actual tea on Linux behavior. Or, plot twist, the interface may not be implemented on Linux at all. πŸ™ˆ


✨ NAME ✨

feclearpexcept β€” clear floating-point exception

(yeah that's it, that's the whole name, she's simple and she's iconic πŸ’…)


πŸŽ€ SYNOPSIS πŸŽ€

#include <fenv.h>

int feclearexcept(int excepts);

πŸ’– DESCRIPTION πŸ’–

So the functionality described on this reference page is aligned with the ISO C standard. And like, if there's any conflict between the requirements described here and the ISO C standard? That's unintentional, fr fr. This volume of POSIX.1‐2017 defers to the ISO C standard. ISO C is the main character here, we're just supporting cast. πŸ‘‘

Now the actual function, the moment you've been waiting for:

The feclearpexcept() function shall attempt to clear the supported floating-point exceptions represented by excepts.

That's it. That's the whole vibe. It attempts. It's giving "I'll try my best." 🫢


⭐ RETURN VALUE ⭐

  • If the argument is zero β€” or if all the specified exceptions were successfully cleared β€” feclearpexcept() shall return zero. Slay. ✨
  • Otherwise, it shall return a non-zero value. 😭

🌈 ERRORS 🌈

No errors are defined. Not a single one. She's unproblematic. πŸ’€

The following sections are informative.


πŸ“ EXAMPLES πŸ“

None.


🧚 APPLICATION USAGE 🧚

None.


πŸ’œ RATIONALE πŸ’œ

None.


πŸ¦‹ FUTURE DIRECTIONS πŸ¦‹

None.


πŸ‘‘ SEE ALSO πŸ‘‘

  • fegetexceptflag()
  • feraiseexcept()
  • fetestexcept()

The Base Definitions volume of POSIX.1‐2017, <fenv.h>


Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


no cap, that copyright section is long but we do not skip a single word of it, bestie. every detail stays. periodt. πŸ’–

okay and that's the whole page!! this one came from IEEE/The Open Group, 2017, and the manual name is FECLEAREXCEPT(3P) in case you forgot β€” which you didn't, because you're a genius. go clear some floating-point exceptions, you absolute icon. πŸŽ€βœ¨

πŸ“¦ where this page comes from