shishi_keys_from_file(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_keys_from_file(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3, and today's main character is shishi_keys_from_file. it's an API function, it's lowkey iconic, and it's about to load up your keyring like it's a group chat. let's go πŸ¦‹


✨ NAME ✨

shishi_keys_from_file β€” API function πŸ‘‘


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_keys_from_file(Shishi_keys * keys, const char * filename);

like. that's it. that's the whole vibe. two arguments, one int, no drama πŸ’…


✨ ARGUMENTS ✨

  • Shishi_keys * keys β€” your key set handle, bestie. the one you got from shishi_keys(), no substitutions allowed, this is that handle πŸŽ€
  • const char * filename β€” the filename you wanna read keys from. yes, the actual file. yes, spelled exactly like that ✨

✨ DESCRIPTION ✨

so here's the tea: this function reads zero or more keys out of the file filename and appends them to the keyset keys. zero! so if the file's giving nothing, that's still valid, no shame πŸ™ˆ

and if you wanna know what the input is supposed to look like? that's shishi_key_print()'s whole job β€” go check that one for the format, iykyk πŸ“–

note: it appends. it does not yeet what's already in your keyset. your existing keys stay put, periodt.

✨ RETURN VALUE ✨

returns SHISHI_OK iff successful. that "iff" is doing heavy lifting fr fr β€” anything else and something went sideways πŸ’€


✨ SINCE ✨

0.0.42 β€” ancient. elder statesman energy. it was slaying before you were born πŸ‘‘


✨ REPORTING BUGS ✨

found a bug? don't be shy, report 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. (translation: go off, just keep the receipt πŸ§ΎπŸ’–)


✨ SEE ALSO ✨

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

info shishi

should give you access to the complete manual. that's the whole entire lore, bestie 🌈


and that's a wrap!! this page came to you from shishi, version 1.0.3, filed under shishi_keys_from_file(3). stay hydrated, read your man pages, and go append some keys πŸ«Άβœ¨πŸ’œ