shisa_keys_free(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

πŸ’– shisa_keys_free(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3 β€” this one's the cleanup queen, shisa_keys_free, and she's literally here to tidy up after your key party πŸŽ€


✨ NAME ✨

shisa_keys_free β€” an API function, and honestly? a whole vibe of letting go πŸ¦‹


✨ SYNOPSIS ✨

#include <shisa.h>

void shisa_keys_free(Shisa * dbh, Shisa_key ** keys, size_t nkeys);

✨ ARGUMENTS ✨

  • Shisa * dbh β€” your Shisa library handle, the one you got from shisa(). she's the main character of this whole operation πŸ‘‘
  • Shisa_key ** keys β€” a pointer to an array of Shisa key structures. it's giving "here's the whole squad" πŸ’…
  • size_t nkeys β€” how many key elements are actually chillin' in that keys array. count 'em, bestie πŸ”’

✨ DESCRIPTION ✨

so here's the tea: this function deallocates every single key element in the array keys of Shisa database keys. and the way she does it? by hitting up shisa_key_free() over and over again, one call per key πŸ”

no cap, that's the whole thing. it's a for-loop with good manners. she takes out the trash so you don't have to, one key at a time, nkeys times. slay ✨


πŸ› REPORTING BUGS πŸ›

found a bug? don't suffer in silence, bestie. report it to <bug-shishi@gnu.org> 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 queen, that's the actual license text and we're keeping it verbatim, no editing 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. iykyk πŸ“–


lowkey important reminder: this page lives in manual section 3, so if you're lost in the sauce, that's where she resides 🫢

and that's the whole page, bestie! this was shishi version 1.0.3 dropping shisa_keys_free(3) β€” go forth and free those keys, you absolute icon πŸ’œπŸŒΈβ­