shishi_tkts_nth(3)
π shishi_tkts_nth β bestie, let's grab a ticket by number π
okay so this one lives in the shishi manual, section 3, and it's genuinely one of the cutest little lookups in the whole library. no cap. it's literally "give me ticket number N from the ticket set" and that's it. periodt.
β¨ SYNOPSIS β¨
#include <shishi.h>
Shishi_tkt * shishi_tkts_nth(Shishi_tkts * tkts, int ticketno);
π ARGUMENTS π
Shishi_tkts * tktsβ the ticket set handle, bestie. the one you got fromshishi_tkts()earlier. it's giving "the bag you keep all your tickets in" πint ticketnoβ an integer saying which ticket in the ticket set you're asking for. just a lil number, no drama.
π¦ GET THE N π¦
th ticket in ticket set.
(okay yes the heading is doing a bit β the "N" up there is the ticketno you pass in, and the "th" finishes the sentence. iconic, honestly. this is the function that actually hands you that ticket. π
)
πΈ RETURN VALUE πΈ
it hands back a ticket handle to the ticketno:th ticket in the ticket set, or NULL if the ticket set is invalid or ticketno is out of bounds. π«Ά
and listen, the counting is zero-based, no cap:
- the first ticket is
ticketno0 - the second is
ticketno1 - and so on, and so on
so if you're off-by-one'ing, that's a you problem bestie π the function is not the villain here.
π₯ REPORTING BUGS π₯
found something cursed? report bugs to <bug-shishi@gnu.org>. π
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
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.
(that's the license, and it's very generous of them, we love that for us π)
π 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 the main character of docs fr fr πβ¨
and that's the whole page bestie!! π this was shishi_tkts_nth(3) from the shishi manual, version 1.0.3 β the date's the same vintage energy as the rest of the set. now go index into that ticket set responsibly, mwah π
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms