shishi_apreq_to_file(3)
π shishi_apreq_to_file β the manual page, but make it make sense π
okay bestie, so this is a page from the shishi manual (section 3, the library-function girlies) and it's literally all about one little function called shishi_apreq_to_file. she's a save button. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
shishi_apreq_to_file β API function
yes that's it, that's the name, it's an API function, we love a concise queen π
π SYNOPSIS π
#include <shishi.h>
int shishi_apreq_to_file(Shishi * handle, Shishi_asn1 apreq, int
filetype, const char * filename);
there she is. four arguments, one int return, zero drama. slay β¨
πΈ ARGUMENTS πΈ
Shishi * handleβ the shishi handle, and you gotta have one that was allocated byshishi_init(). no handle, no service, that's the rule πShishi_asn1 apreqβ the AP-REQ you wanna save. that's the whole point of this function, bestie, don't lose her πint filetypeβ an input variable that says what type of file we're writing. which types exist? go checkShishi_filetype, that's where the menu lives πconst char * filenameβ an input variable holding the filename you're writing to. yes, the actual name. iconic of her π
π¦ DESCRIPTION π¦
Write AP-REQ to file in specified TYPE. and because the universe is chaotic: the file will be truncated if it exists. π
okay so real talk β truncated means whatever was in that file before? gone. poof. so pls pls pls make sure you're pointing filename at something you actually want to overwrite. no cap π«Ά
π RETURN VALUE π
Returns SHISHI_OK iff successful.
that's the good one. that's the one you want. if you don't get SHISHI_OK, something went sideways and you should probably read the room (and the docs) π
π REPORTING BUGS π
found a bug? not cute, but also not your fault, go tell the maintainers:
- 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/
they want the tea, fr fr. give them the tea β
π 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.
^ that's the legal bit and it's actually pretty generous of them, we love a permissive license moment π«Άβ¨
β 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 β the Texinfo manual is the main character of documentation formats, and she has everything π
and that's the page!! footer says this is from shishi, version 1.0.3, and honestly? 1.0.3 ate. go save those AP-REQs responsibly bestie, and remember: truncation is forever ππ β¨
π¦ 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