gss_check_version(3)

πŸ“¦
version 1.0.4 Β· 3 versions
, in alpine 3.24, debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… gss_check_version(3) πŸ’…

okay bestie, this one lives in the gss manual, section 3, and it's literally the vibe check for your library version. yes we're doing this. let's go 🫢


✨ NAME ✨

gss_check_version β€” API function (she's an API function, that's her whole job, iconic behavior honestly)


🌸 SYNOPSIS 🌸

#include <gss.h>

const char * gss_check_version(const char * req_version);

πŸŽ€ ARGUMENTS πŸŽ€

  • const char * req_version β€” the version string you wanna compare against, OR you can just pass NULL and skip the comparison entirely. your call, main character.

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically she checks that the version of the library is at minimum the one you handed her as a string in req_version. like, "bestie are we at least this new? yes? slay." that's it. that's the function. πŸ’–


πŸ’€ WARNING πŸ’€

okay listen up, this part is important and I need you to actually read it:

This function is a GNU GSS specific extension, and is not part of the official GSS API.

so like, if you're out here expecting this to work everywhere β€” nope. she's homegrown, she's a special little treat, she's not standard. periodt.


⭐ RETURN VALUE ⭐

  • the actual version string of the library β€” that's what you get back πŸŽ‰
  • NULL if the condition is not met. so if the version ain't up to snuff, you get nothing. ghosted. 😭
  • and if you pass NULL to this function? no check gets done at all, and only the version string is returned. lowkey the laziest mode and honestly, valid.

πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence, tell the people:


Copyright Β© 2003-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.

(that's the legal bit, she's giving very much "free to share, just keep the receipts" energy ✨)


🌈 SEE ALSO 🌈

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

info gss

should give you access to the complete manual. iykyk πŸ“–


so yeah, that's gss_check_version(3) from the gss manual, version 1.0.4 β€” go forth and check your versions responsibly, bestie. mwah πŸ’œ

πŸ“¦ where this page comes from