shishi_key_to_file(3)
β¨ shishi_key_to_file β the manual page bestie π
okay so this is the shishi_key_to_file(3) page from the shishi manual (version 1.0.3, if you're keeping receipts). it's an API function, it's lowkey iconic, and it does exactly one thing: it writes your key out to a file. let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_key_to_file(Shishi * handle, const char * filename,
Shishi_key * key);
that's it, that's the whole vibe check π
π ARGUMENTS π
Shishi * handleβ the Shishi handle, and it's gotta be one you got fromshishi_init(). like, you can't just show up with a random handle, bestie, it has to come from the right place β¨const char * filenameβ the name of the file, and this is the file the key text gets appended to. appended, not replaced. noted πShishi_key * keyβ the key you wanna print. that's the whole point, babes π
π¦ DESCRIPTION π¦
so what it does is: it prints an ASCII representation of a key structure, key, into the file named filename. and the way that it handles an existing file?? it appends the text if the file already exists, it does not overwrite, periodt π
if you wanna see what the output text actually looks like, go peek at shishi_key_print() β that one shows you an example π
β RETURN VALUE β
it returns SHISHI_OK if everything went great, slay π
if it fails? it's because of I/O issues, or because of allocation. that's it, those are the two culprits. no cap π
π REPORTING BUGS π
found a bug? don't gatekeep it, tell the people π«Ά
- 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.
(yes bestie, that means you can copy it, you just have to keep the notice. iconic behaviour from the licensing tbh π)
π SEE ALSO π
the full documentation for shishi is maintained as a Texinfo manual. so if the info and shishi programs are properly installed at your site, then running this:
info shishi
should give you access to the complete manual. iykyk πβ¨
and that's the page!! mwah π this whole thing lives in the shishi manual, version 1.0.3, and it's the shishi_key_to_file(3) page β go forth and append your keys responsibly, bestie ππ¦π
π¦ 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