shishi_time(3)
π shishi_time β the little API function that reads clocks out of ASN.1 π
okay bestie, pull up a chair, because we're talking about shishi_time(3) β a genuine member of the shishi manual, third section (library calls, for the uninitiated π
). she's small, she's focused, she does exactly one job and she does it beautifully. no cap.
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_time(Shishi * handle, Shishi_asn1 node, const char * field,
char ** t);
like... look at her. four arguments, one int, zero drama. π
πΈ ARGUMENTS πΈ
Shishi * handleβ your Shishi handle, the one you got handed back fromshishi_init(). she's the whole vibe, everything runs through her. π«ΆShishi_asn1 nodeβ the ASN.1 structure we're pulling the time out of. this is the lil container, the gift box if you will. πconst char * fieldβ the name of the field inside that ASN.1 node that's actually carrying the time. like, which drawer in the box, yk? ποΈchar ** tβ a returned pointer to an allocatedchararray holding a null-terminated time string. yes bestie, allocated β she's giving you memory, so treat her right. β¨
π DESCRIPTION π
so what does she actually do? she extracts time information from an ASN.1 structure. and to be precise β and she IS precise, she's that girl β she does it from the named field field within the structure node. π₯
that's it. that's the whole function. no side quests, no surprises, just vibes and timestamps. β
π¦ RETURN VALUE π¦
she returns SHISHI_OK if everything went slay, or an error if it did not. (if you get an error, do not come for her, check your inputs bestie π)
π REPORTING BUGS π
found a bug? do NOT suffer in silence, that's not the energy. 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.
(translation: share her, remix her, 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 it, it's giving β¨encyclopediaβ¨.
fr fr, that's the whole page. shishi_time stays iconic, stays unbothered, stays returning SHISHI_OK. periodt. π
signing off from the shishi man pages, version 1.0.3 β she ate and left no crumbs, and yes, she's still filed under shishi_time(3). π¦ππΈ
π¦ 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