errno.h(3avr)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– errno.h β€” the little header that's all up in your error business πŸ’–

okay bestie, welcome to errno.h(3avr) β€” yes that's the manual page for the AVR-LibC header of the same name, and no it is NOT long, it's giving tiny-iconic-energy and we're gonna get through it together in like twelve seconds πŸŽ€


✨ NAME ✨

errno.h β€” that's it, that's the name, she's a header file and she knows it πŸ’…


🌸 SYNOPSIS 🌸

🧚 Macros

#define EDOM   33
#define ERANGE   34

πŸ¦‹ Variables

int errno

πŸ‘‘ DESCRIPTION πŸ‘‘ (the vibes, explained)

okay so here's the thing β€” errno.h is the home of that one global variable that every libc function gossips through when something goes wrong: errno, declared as int errno. when a function has a lil moment, it doesn't text you, it just sets errno and hopes you check it πŸ™ˆ

and then you've got the two macros that live here, which are the classic "what kind of problem was it" codes:

  • EDOM β€” defined as 33. it's the "your argument was out of the domain, babe, that math doesn't exist" code πŸ“
  • ERANGE β€” defined as 34. it's the "your result was out of range, it overflowed/underflowed, we can't hold all that" code 😭

that's the whole header. no cap. two macros and a variable, and yet the entire error-handling ecosystem of your AVR project is lowkey resting on her shoulders. main character energy fr fr πŸ”₯

reminder bestie: these are the values as declared in this header β€” 33 and 34. don't be out here assuming different numbers, copy them exactly, periodt.

πŸ’œ AUTHOR πŸ’œ

Generated automatically by Doxygen for AVR-LibC from the source code. so like, nobody hand-wrote this one, a robot did it, and honestly? she ate πŸ€–βœ¨


and that's the whole page!! 🫢 this was AVR-LibC Version 2.2.1, manual section 3avr, and it's the errno.h page β€” go forth and check your errno, bestie, your future self will thank you πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from