shishi_error_clear(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_error_clear β€” the little reset button for Shishi's error vibes πŸ’–

okay bestie, welcome to the shishi_error_clear(3) page from the shishi manual (yes that shishi, the GNU one, hi πŸ‘‹). this is the part where we wipe the slate clean. no cap.


✨ SYNOPSIS ✨

#include <shishi.h>

void shishi_error_clear(Shishi * handle);

like… that's it. that's the whole thing. one function, zero return value, maximum peace of mind πŸ§˜β€β™€οΈ


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). if you don't have one of these yet, bestie, go get one first, this function is literally nothing without it πŸ™ˆ

🌸 DESCRIPTION 🌸

so what does it do?? it clears the internal error description. poof. gone. the error string said its goodbyes πŸ’…

if you wanna know how to read that error string, that's a whole other function β€” go look at shishi_error(). and if you wanna set it instead of clearing it, you've got two options: shishi_error_set() and shishi_error_printf(). pick your fighter ✨

now real talk: this function is mostly for Shishi's internal use. it's the kind of thing the library calls on itself, lowkey. BUT β€” and this is the fun part β€” if you're out here developing an extension of Shishi, it may be useful to support the same error handling infrastructure. so like, if you're building on top of it, matching the vibe is chef's kiss πŸ‘‘


😭 REPORTING BUGS 😭

found a bug?? don't just scream into the void, tell the actual humans:

they're nice, i promise. fr fr 🫢


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.

(translation: go off, remix it, just keep the receipts πŸ’–)


🌈 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. it's giving "encyclopedia but make it a terminal" πŸ“šβœ¨


ngl this page is tiny but it ate. clearing errors is self-care and self-care is main character energy. periodt. πŸ’…

shishi version 1.0.3, page shishi_error_clear(3) β€” mwah, stan, bye bestie πŸ¦‹πŸŒΈπŸŽ€