shishi_ctime(3)
π shishi_ctime β the manual, but make it slay π
okay bestie, so this one is a lil function from the shishi manual, section 3 (that's the library-functions section, iykyk). her whole job? pulling a time value out of an ASN.1 structure. that's it. that's the girl. πβ¨
πΈ NAME πΈ
shishi_ctime β API function. she reads time out of ASN.1 and she does it flawlessly.
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_ctime(Shishi * handle, Shishi_asn1 node, const char * field,
time_t * t);
like, look at her. four args, one int return, no notes. π
π ARGUMENTS π
Shishi * handleβ the Shishi handle, bestie, and you gotta get it the proper way: as allocated byshishi_init(). no bootleg handles here. π βοΈShishi_asn1 nodeβ the ASN.1 structure we're reading the field out of. this is the house the field lives in. πconst char * fieldβ the literal name of the field insidenodethat you want read. be specific, she's not guessing. π―time_t * tβ pointer to a C-time valued integer, and it gets updated with the time value that's being extracted. she writes into it, so hand her a real one. βοΈ
π DESCRIPTION π
so what she does is: she extracts time information from an ASN.1 structure node, and she takes it from an arbitrary element field of that structure. that's the whole vibe. you point, she pulls the time out, no cap. π¦
β RETURN VALUE β
she's got a whole mood ring of return codes, so listen up:
SHISHI_OKβ she ate. everything worked. πSHISHI_ASN1_NO_ELEMENTβ the element straight up does not exist. it's giving ghosted. π»SHISHI_ASN1_NO_VALUEβ the field exists but has no value. empty. vacant. nobody home. π«₯- in all other cases,
SHISHI_ASN1_ERRORis returned. so like, anything else that goes wrong lands there. periodt.
π REPORTING BUGS π
found a bug? don't suffer in silence, bestie, tell the devs:
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. so yes, share her around, 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 the main character energy the docs deserve. πβ¨
and that's the page, bestie!! this was shishi_ctime, from shishi version 1.0.3, dated 1.0.3 β mwah, love that for us. now go extract some times and be iconic about it π ππ
π¦ 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