tai_unpack(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

πŸ’– tai_unpack β€” from the Library Functions Manual, bestie πŸ’–

okay so this is a page from the Library Functions Manual, and it's about one lil function called tai_unpack, and honestly? it's giving "tiny but mighty" energy. no cap. let's get into it. 🫢


✨ NAME ✨

tai_unpack β€” convert to external TAI64 format

like yes, that's the whole name section, it's short, it ate, periodt. πŸ’…


🌸 SYNTAX 🌸

#include <libowfat/tai.h>

extern int tai_unpack(const char* buf,struct tai* t);

so you gotta pull in <libowfat/tai.h> first, that's non-negotiable bestie, and then the function itself is declared extern, returns an int, and takes exactly two things:

  • const char* buf β€” the buffer, and it's const so we're reading it, not messing with it, we respect it πŸ™ˆ
  • struct tai* t β€” a pointer to a struct tai, this is where the good stuff lands

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•:

tai_unpack converts a TAI64 label from external TAI64 format sitting in buf into internal format in t.

that's it. that's the function. it takes the outside-world version of a TAI64 label and unpacks it into the internal representation so your code can actually use it. lowkey iconic that a whole manpage can be this chill. 🌈

tiny reminder from me to you: it's buf going in, t coming out. don't get them twisted or the vibe check will be failed. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, fr fr, they're the rest of the squad. πŸŽ€


and that's the whole page, bestie!! the footer of this manual is literally just tai_unpack(3) again β€” no version, no date, just the name doing a little encore at the bottom of the terminal. πŸ¦‹βœ¨ so like, the manual is the Library Functions Manual version, and that's all she wrote. slay. πŸ’–