shishi_error_set(3)
π shishi_error_set(3) β the shishi manual, bestie edition π
okay so we're deep in the shishi manual pages rn and this one is literally about telling shishi what went wrong. sit down, grab a boba, we're doing error strings π«Ά
β¨ NAME β¨
shishi_error_set β it's an API function, bestie. that's the whole vibe.
πΈ SYNOPSIS πΈ
#include <shishi.h>
void shishi_error_set(Shishi * handle, const char * errstr);
π ARGUMENTS π
Shishi * handleβ the shishi handle, and like... you get this fromshishi_init(). it's the main character of every shishi function fr.const char * errstrβ a null-terminated character string holding a description. orNULLto clear the internal error string. yes you can just wipe it. slay.
π DESCRIPTION π
okay so what this does is: it sets the error description to the content of errstr. that's it, that's the job. π
and here's the cute part β the string gets copied into the Shishi internal structure. so you can deallocate any string you passed to this function and it will not care. it already took what it needed. no cap, no dangling pointer drama, we love a clean copy. β¨
this function is mostly for Shishi's internal use, ngl. but if you're developing an extension of Shishi, it may genuinely be useful to support the same error handling infrastructure. like, same energy, same system. iykyk. π₯
π REPORTING BUGS π
found a bug? not you being the main character of QA π 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, 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. go read it, bestie, it's giving encyclopedia but make it shishi. π
and that's the whole page!! this lil guy is from shishi version 1.0.3, and yeah, it's the shishi_error_set(3) page β mwah, periodt. πβ¨
π¦ 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