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

πŸ’– shishi_tkt_server_p(3) β€” the shishi manual, bestie edition πŸŽ€

okay so this is a page from the shishi manual, and it's about one tiny lil function that's lowkey a bouncer at the club door but for tickets. it's an API function, so it's for you, the coder, not for typing into your shell like a script. iykyk πŸ’…


✨ NAME ✨

shishi_tkt_server_p β€” API function 🌈

like. that's it. that's the whole name. it's giving "short, sweet, does one job" and honestly? iconic.


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, verbatim, no edits bestie:

#include <shishi.h>

int shishi_tkt_server_p(Shishi_tkt * tkt, const char * server);

yes you gotta include <shishi.h> first. it's the little entry fee. 🎟️


πŸ¦‹ ARGUMENTS πŸ¦‹

two args, both important, don't skip either:

  • Shishi_tkt * tkt β€” input variable with ticket info. so it's the ticket you're interrogating, bestie. 🎫
  • const char * server β€” server name of ticket. the name you're checking the ticket against. ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

Determine if ticket is for specified server.

that's literally it. you hand it a ticket, you hand it a server name, and it tells you whether that ticket is for that server. it's a vibe check for tickets, fr fr. 🧚


⭐ RETURN VALUE ⭐

Returns non-0 iff ticket is for specified server.

heads up bestie: it's non-0, not specifically 1, and it's iff β€” if and only if. so non-zero means yes-it-is, and zero means no-it-isn't. that's the whole contract. don't overthink it. πŸ’–

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? spill it. πŸ›

Report bugs to <bug-shishi@gnu.org>.


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 like, remix it, share it, whatever β€” 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 the whole thing, it's a whole saga and you'll be obsessed. 🫢


and that's the page!! this was shishi_tkt_server_p(3) from the shishi manual, version 1.0.3 β€” thanks for reading, bestie, mwah πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ