shishi_ctime(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_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 by shishi_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 inside node that 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_ERROR is 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>.

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 πŸ’…πŸ’–πŸŽ€