shishi_init_server_with_paths(3)
π shishi_init_server_with_paths β the NAME section, bestie
okay so like, this is a page from the shishi manual (section 3, the library-call girlies), and it's all about shishi_init_server_with_paths. It's an API function. That's the whole name. Short, sweet, iconic. π
β¨ SYNOPSIS β¨
like, the whole vibe in one code block:
#include <shishi.h>
int shishi_init_server_with_paths(Shishi ** handle, const char * systemcfgfile);
π ARGUMENTS π
Shishi ** handleβ a pointer to a Shishi handle, and this call is the one that creates it. She's the main character here. πconst char * systemcfgfileβ the filename of the system configuration, orNULLif you're feeling mysterious and don't wanna specify one. π
πΈ DESCRIPTION πΈ
So the way this works: it creates a Shishi library handle β using shishi_server(), bestie, no cap β and then it reads the system configuration file from the location you specified. The path to that system configuration file? That's not your call, it's decided at compile time, and it is $sysconfdir/shishi.conf. iykyk. β¨
Now here's the part you need to internalize: the handle gets allocated regardless of the return value. Like, no matter what happens, she exists. The single exception to that is SHISHI_HANDLE_ERROR, which is the one that means there was a problem allocating the handle itself. Other error conditions could pop up while reading the file, so stay alert. π
not me just casually dropping the most important caveat in the middle of the paragraph. anyway. the handle is allocated regardless of return value. remember it. periodt.
β RETURN VALUE β
Returns SHISHI_OK iff it was successful. That's it, that's the whole section. Slay. π
π¦ REPORTING BUGS π¦
Found a bug? (Rude of the software, honestly.) Report it 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.
π«Ά 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 giving β¨ thorough β¨.
okay bestie that's the whole page, mwah π this was shishi version 1.0.3, page shishi_init_server_with_paths(3) β thanks for reading, ily, go allocate a handle πβ¨
π¦ 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