ldiv_t(3)
π ldiv_t β the little struct that could (avr-libc girlie here)
Okay so bestie, welcome to avr-libc land β¨ This is the page for ldiv_t, and honestly it's giving "small but mighty" energy. It's a result type β like a lil gift bag π β that the function ldiv() hands back to you. That's it. That's the vibe. No cap.
β¨ SYNOPSIS β¨
π«Ά Data Fields
Lowkey the whole struct is just two longs chilling together:
long quot
long rem
That's the entire squad. Two fields. Iconic behavior, honestly. π
πΈ DESCRIPTION πΈ
So ldiv_t is literally the result type for the function ldiv() β that's it, that's the whole job description. When ldiv() finishes doing its division thing, it wraps up its answers in one of these bad boys and hands it to you. Main character energy for a data type, ngl. π
It contains two long fields β a quotient and a remainder β because when you divide, you get both a whole-number answer and a leftover, and this struct is like "bestie, I got you, here's both in one cute package." π
π Field Documentation π
β long ldiv_t::quot
This one is The Quotient β the actual division answer. The whole-number part. The "how many times does it go in" energy. Slay. π
β long ldiv_t::rem
And this one is The Remainder β the lil bit left over after the division. The crumbs. The extra. The "there's still some left in the bowl" vibe. π₯£β¨
π Author π
So this page was generated automatically by Doxygen for avr-libc from the source code. Not a human typing it out by candlelight β a whole tool did it. Automated queen behavior. π€π
A lil heads up, bestie: because this page was auto-generated from the source, don't come for the author β Doxygen said what it said and we're just relaying the message. π«Ά
And that's the whole page, fr fr. Short and sweet, just like this struct. ππ¦
Sign-off: this was Version 2.1.0, dated Sat Jan 29 2022 β catch you in the next manpage, bestie! ππβ¨
π¦ where this page comes from
- fedora 43: avr-libc 2.2.1-3.fc43 Β· BSD-3-Clause
- fedora 44: avr-libc 2.2.1-5.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: avr-libc 2.1.0-bp160.1.33 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms