shishi_keys_add(3)
β¨ shishi_keys_add(3) β¨
okay bestie, welcome to the shishi manual, page for shishi_keys_add π this is the little API function that slides a key into a key set, and honestly? it's giving responsible memory management. let's get into it π«Ά
πΈ NAME πΈ
shishi_keys_add β API function π
π SYNOPSIS π
#include <shishi.h>
int shishi_keys_add(Shishi_keys * keys, Shishi_key * key);
like yes, two args, one int coming back, we love a clean signature β¨
π¦ ARGUMENTS π¦
Shishi_keys * keysβ the key set handle, as allocated byshishi_keys(). this is the lil collection you're adding into, k? πShishi_key * keyβ the key that's getting added to that key set. the main character of this whole operation ngl π
π DESCRIPTION π
so here's the tea: this function adds a key to the key set. simple, iconic, does exactly what it says π
and here's the part that lowkey matters the most β it stores a deep copy of the key. which means if you go and change key afterwards, or deallocate it entirely, the value sitting inside the key set does not budge. not even a little. your key set keeps its own lil copy, safe and sound, no cap π«Άβ¨
so you can yeet the original key into the void and the set will still be chilling with its own version. obsessed with that actually ππ
β RETURN VALUE β
returns SHISHI_OK iff successful. that's it, that's the whole return value situation π
fr fr, if it's not SHISHI_OK... something else happened, and that's on the caller to handle π
π REPORTING BUGS π
found a bug? spill it to <bug-shishi@gnu.org> bestie, they wanna know ππ
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
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. periodt π β¨
π 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, this command:
info shishi
should give you access to the complete manual. iykyk π
and that's the page bestie!! π this was shishi version 1.0.3, page shishi_keys_add(3), and yes i read the whole thing so you didn't have to π«Ά now go add some keys, slay, and remember: deep copy means deep copy, no take-backsies ππ¦πΈ
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms