shishi_check_version(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

shishi_check_version β€” it's an API function, bestie, and it's here to do a lil vibe check on your library version ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

const char * shishi_check_version(const char * req_version);

πŸŽ€ ARGUMENTS πŸŽ€

  • const char * req_version β€” the oldest version you're willing to accept, like your bare minimum. Or NULL if you're feeling unbothered and have zero standards today πŸ’…

🌸 DESCRIPTION 🌸

Okay so what this does: it checks that the installed library version is at least as recent as whatever you dropped into req_version. The version string is formatted like "1.0.2", so that's the shape you're matching against, no cap πŸ“

And whenever NULL gets passed to this function, the check is just… suppressed. Like, no check happens at all. But the library version is still returned β€” she still shows up to the party even when you told her not to bother checking the guest list 🫢


✨ RETURN VALUE ✨

It returns the active library version. Or NULL, should the running library be too old. So like, if the vibe check fails, you get nothing back. Iconic but brutal 😭


πŸ› REPORTING BUGS πŸ›

Found a bug? Don't suffer in silence, tell the people:


Copyright Β© 2002-2022 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. So yes, you may absolutely redistribute this, just keep the receipts, periodt πŸ’–


🌈 SEE ALSO 🌈

The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command

info shishi

should give you access to the complete manual. Go read it, it's giving main character energy πŸ“š


And that's the whole page, bestie!! This was the shishi_check_version(3) man page, hanging out in the shishi manual, version 1.0.3 β€” mwah, slay, go check some versions responsibly πŸ’…βœ¨πŸŽ€