shishi_tkts_find(3)
π shishi_tkts_find(3) π
okay bestie, sit down, hydrate, and let me tell you about shishi_tkts_find β it's a lil function from the shishi manual (section 3, the library girlies) and she's here to hunt down tickets for you. no cap.
β¨ NAME β¨
shishi_tkts_find β it's an API function, bestie. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <shishi.h>
Shishi_tkt * shishi_tkts_find(Shishi_tkts * tkts, Shishi_tkts_hint * hint);
look at her. two args, one dream. π
π¦ ARGUMENTS π¦
Shishi_tkts * tktsβ the ticket set handle, as allocated byshishi_tkts(). this is your lil basket of tickets, and yes you gotta have it first.Shishi_tkts_hint * hintβ a structure packed with the characteristics of the ticket you're tryna find. it's giving "search filter but make it a struct". β¨
π DESCRIPTION π
so here's the tea: this function searches the ticketset sequentially β like, from ticket number 0 through all the tickets in the set β looking for a ticket that fits the characteristics you handed over.
and the way that it's iconic?? if a ticket is found, the hint->startpos field gets updated to point to the next ticket in the set. which means you can call this function over and over again with the same hint argument and it'll keep finding all the tickets that match a certain criterium. literally a little iterator, she's so smart. π§
β οΈ but listen β if tickets get added to, or removed from, the ticketset while you're mid-query with the samehintargument, then thehint->startposfield must be updated appropriately. don't just let it drift, bestie, that's how you get lost in the set. π
π HERE IS HOW YOU WOULD TYPICALLY USE THIS FUNCTION π
okay so this is the whole ~moment~, look:
Shishi_tkts_hint hint;
Shishi_tkt tkt;
memset(&hint, 0, sizeof(hint));
hint.server = "imap/mail.example.org";
tkt = shishi_tkts_find (shishi_tkts_default(handle), &hint);
if (!tkt)
printf("No ticket found...0);
else
do_something_with_ticket (tkt);
(and yes, that printf line really is written like that in the original. we don't fix, we don't touch, we preserve. π«Ά)
π RETURN VALUE π
returns a ticket if one's found β or NULL if no further matching tickets could be found. so like, NULL means the search said "sorry babe, nothing left". π
π₯ REPORTING BUGS π₯
found a bug? don't gatekeep, report it 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.
β 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. periodt. π
and that's the whole page, bestie β this was shishi_tkts_find(3) from shishi version 1.0.3, mwah, go find your tickets π¦πβ¨
π¦ 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