shishi_key_value_set(3)
β¨ NAME β¨
shishi_key_value_set β bestie, this is an API function from the shishi manual (section 3, library calls only, we're fancy like that π
). It sets the value of a key. That's it. That's the whole gig.
πΈ SYNOPSIS πΈ
#include <shishi.h>
void shishi_key_value_set(Shishi_key * key, const char * value);
Like, it returns void. No return value. Nothing to check. She simply does the thing and leaves. π
π ARGUMENTS π
Shishi_key * keyβ the structure that holds key information. This is the one getting its glow-up. β¨const char * valueβ an input array with key data. The raw material, the ingredients, the ~content~.
π DESCRIPTION π
Okay so here's the tea: this function sets the key value and the length in the key structure. Both. At once. Multitasking queen behavior. π
And the way it works? The value gets copied into the key. Which means β and this is the part everyone always asks about β you can totally deallocate value right after calling this function, and the value inside the key will be completely fine. Not modified. Not haunted. Not giving "dangling pointer" at all. π«Ά
no cap, the copy is doing the heavy lifting so you don't have to π§
π REPORTING BUGS π
Found a bug? Spill it to <bug-shishi@gnu.org>. They wanna know. fr fr.
- 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.
(Translation: take it, share it, remix it, just keep the receipt. π§Ύβ¨)
π 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. Iconic. Go read it. ππ
shishi version 1.0.3, page shishi_key_value_set(3) β mwah, that's a wrap, bestie ππ¦π
π¦ 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