SHTK_VERSION_AT_MOST(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

okay so this is the SHTK_VERSION_AT_MOST(3) page from the Library Functions Manual, and it's all about shtk_version_at_most β€” the little function that checks if shtk is a maximum version πŸ’…

πŸ“š LIBRARY πŸ“š

shtk_import version

πŸͺ„ SYNOPSIS πŸͺ„

shtk_version_at_most version

πŸ’– DESCRIPTION πŸ’–

The shtk_version_at_most function does a vibe check on the version of the in-use shtk: it checks if that version is, at most, the version given in version. no cap, that's literally its whole thing 🫢

πŸŽ€ RETURN VALUES πŸŽ€

  • shtk_version_at_most returns 0 (true) if the in-use shtk is version version or earlier ✨
  • it returns 1 (false) otherwise πŸ’€

🌈 EXAMPLES 🌈

here's the little snippet, bestie:

             if shtk_version_at_most 1.10; then
                 # Maybe exit if we know we do not work well with 1.10 and above.
             fi

the comment is doing the explaining: maybe exit if you know you do not work well with 1.10 and above πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

go check out shtk(3) and shtk_version(3) β€” iykyk πŸ’œ

πŸ•°οΈ HISTORY πŸ•°οΈ

shtk_version_at_most first appeared in shtk 1.5 🌸


okay that’s a wrap, bestie πŸ’… β€” this one comes from Debian, dated November 7, 2014, and you were reading SHTK_VERSION_AT_MOST(3) πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from