shishi_ap_option2string(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_ap_option2string(3) πŸ’–

okay bestie, we're diving into the shishi manual and this one is a lil function called shishi_ap_option2string. it's giving "translator" energy and honestly? iconic. let's get into it πŸ¦‹


✨ NAME ✨

shishi_ap_option2string β€” an API function, no cap πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

const char * shishi_ap_option2string(Shishi_apoptions option);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi_apoptions option β€” this is an enumerated AP-Option type, like, literally go look at Shishi_apoptions for the full menu of options. it's a whole vibe list 🫢

πŸ’« DESCRIPTION πŸ’«

so what does this do? it takes an AP-Option type and converts it into the AP-Option name string. simple. clean. slay ✨

but listen β€” important caveat β€” option has to be just one of the AP-Option types. it literally cannot be a binary ORed thing indicating several AP-Options at once. one option only, bestie, we are not doing combos here 😭

πŸ”₯ RETURN VALUE πŸ”₯

it hands you back a static string with the name of the AP-Option β€” and no, you must not deallocate it, so don't you dare free() it, it's not yours 🚫

and if the AP-Option wasn't understood? you get "unknown". that's it. that's the tea πŸ’€


πŸ› REPORTING BUGS πŸ›

found a bug? spill it to <bug-shishi@gnu.org> 🫢


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. so yes, share the love, just keep the receipts πŸ’–


🌈 SEE ALSO 🌈

the full documentation for shishi lives in a Texinfo manual, bestie. if the info and shishi programs are properly installed at your site, this command

info shishi

should give you access to the complete manual. iykyk πŸ“–βœ¨


okay that's the whole page!! this was shishi, version 1.0.3, dated with the shishi_ap_option2string(3) page β€” mwah, go forth and convert those options, you absolute main character πŸ§šπŸ’œ