shishi_hostkeys_default_file_set(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_hostkeys_default_file_set(3) ✨

okay bestie, welcome to the shishi manual β€” yes, the whole library, this page lives in section 3 (library functions, iykyk) πŸŽ€


πŸ’– NAME πŸ’–

shishi_hostkeys_default_file_set β€” the API function that sets your default hostkeys file, periodt 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

void shishi_hostkeys_default_file_set(Shishi * handle, const char *
hostkeysfile);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the Shishi library handle, and you gotta make it with shishi_init() first, no shortcuts πŸ’…
  • const char * hostkeysfile β€” a string holding the new default hostkeys file name. Or pass NULL if you're feeling chaotic and want to reset it back to the default πŸ™ˆ

✨ DESCRIPTION ✨

So basically, this function sets the default host key filename that the library uses. main character behaviour πŸ’–

And here's the slay part: the string gets copied into the library, so you can literally dispose of your variable the second after you call this function. No lingering pointers, no "wait did I free that too early" panic, none of it. It's giving considerate. 🫢


😭 REPORTING BUGS 😭

Found a bug? Not the vibe. Report it to <bug-shishi@gnu.org> so the devs can handle it 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. (Yes bestie, keep the notice, it's the rule ⭐)


🌈 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, then this command:

info shishi

should give you access to the complete manual. Go read it, it ate. πŸ“


and that's the whole page, bestie β€” this was shishi version 1.0.3, page shishi_hostkeys_default_file_set(3), dropping the mic πŸ’…βœ¨