shishi_safe_to_file(3)
β¨ shishi_safe_to_file(3) β¨
okay bestie so we're in the shishi_safe_to_file section of the manual, part of the shishi lineup, and this one is literally just "save the SAFE thing to a file, bestie" πΎβ¨
πΈ NAME πΈ
shishi_safe_to_file β it's an API function, no cap π
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_safe_to_file(Shishi * handle, Shishi_asn1 safe, int filetype,
const char * filename);
like. there it is. the whole vibe in four lines π
π ARGUMENTS π
Shishi * handleβ your shishi handle, the one you got fromshishi_init(). it's giving "i was allocated responsibly" β¨Shishi_asn1 safeβ the SAFE that we're saving. yes. the SAFE. that SAFE. π«Άint filetypeβ input variable telling us what type of file to write, okay? go look atShishi_filetypefor the deets, i'm not making it up π₯const char * filenameβ input variable holding the filename to write to. the destination. the moment. π
π DESCRIPTION π
Write that SAFE to a file, in the type you specified. simple as.
β οΈ but listen β the file will be truncated if it already exists. like, gone. poof. if there was stuff in there, bestie, it's not there anymore π so double-check that filename, fr fr.
β RETURN VALUE β
Returns SHISHI_OK iff it worked. that's it. that's the whole personality. slay π
π REPORTING BUGS π
found a bug? not me gatekeeping, go 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. β¨ (iconic behaviour, honestly)
π 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. iykyk π§
and that's the page, bestie π this was version 1.0.3 of shishi, section shishi_safe_to_file(3) β mwah, go write those SAFEs, but check your filenames first or you WILL lose data ππ
π¦ 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