shishi_tkt_expired_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_expired_p β€” the vibe check for your ticket πŸ’–

okay so bestie, welcome to shishi_tkt_expired_p(3), part of the shishi manual, section 3 (that's the library-functions girlies ✨). this one's short and sweet and honestly kind of iconic for how much it does with so little.


🌸 NAME 🌸

shishi_tkt_expired_p β€” an API function 🫢 (yes that's the whole name section, she's lowkey minimal)


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_tkt_expired_p(Shishi_tkt * tkt);

there she is. one include, one function, zero drama πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi_tkt * tkt β€” an input variable holding your ticket info. that's it, that's the whole arg. she takes your ticket and she judges it (lovingly) πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does this actually do? it determines whether your ticket has expired β€” which is a fancy way of saying endtime is in the past. the ticket said it was valid until some moment, and that moment has been and gone, babe 😭 it's giving "your VIP wristband is from last night's party."

no cap, that's the entire job. she looks at the endtime, she looks at now, she tells you the tea. β˜•


⭐ RETURN VALUE ⭐

returns 0 iff the ticket has expired.

and yes bestie, iff means if and only if β€” so read that carefully, because it's the kind of thing that trips people up in a vibe check. 0 means expired. not-expired does not give you 0. don't come for me, that's just what the docs say πŸ’€

fr fr, keep your eyes on that return value. it's the whole point of the function and it's sneaky in the cutest way.

🌈 REPORTING BUGS 🌈

found something cursed? report bugs to <bug-shishi@gnu.org> πŸ›

they wanna hear from you, bestie, genuinely 🫢


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, share it, remix it, whatever β€” just keep the receipts πŸ“βœ¨)


🧚 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, she's got lore 🌸


and that's the page, bestie!! written against shishi version 1.0.3 β€” section 3, library functions, the whole cute little family. mwah, go check your ticket's endtime, ily πŸ’–πŸ’