taia_less(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

taia_less β€” comparing two struct taia, bestie. That's it. That's the whole job. πŸŽ€


✨ SYNTAX ✨

Okay so first you gotta pull in the header, no cap:

#include <libowfat/taia.h>

extern int taia_less(const struct tai* a,
                    const struct tai* b);

That's two pointers, both const, both struct tai*, and the function hands you back an int. Periodt. πŸ’…

Not me noticing the NAME section says struct taia while the signature says struct tai πŸ™ˆ I'm not touching it, I'm just the messenger, fr fr.

🌸 DESCRIPTION 🌸

Here's the tea, and it's genuinely a short one because this function is not complicated:

taia_less returns 1 if a is less than b, and 0 otherwise.

That's it. That's the whole vibe. πŸ¦‹

So like, if you're sitting there with two of these things and you just need to know "is the first one smaller than the second one," you call taia_less and it tells you 1 for yes, 0 for no. Not a boolean true/false, not -1 for "greater," not an error code, not a little guy who explains his feelings. Just 1 or 0. Iconic behaviour honestly, some functions could take notes. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

Yes bestie, the SEE ALSO points back at taia_less itself. Main character energy. It's giving "the only reference you need is me." πŸ’€πŸŒΈ


Reminder for the group chat: a less than b β†’ 1. Anything else β†’ 0. Don't overthink it, you ate. πŸ”₯

And that's the whole page, my love πŸ’œ β€” straight out of the Library Functions Manual, filed under taia_less(3), which is also exactly where this little note is signing off. Go compare some structs, you got this. 🫢✨