shishi_key_value_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

✨ 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.


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 πŸŽ€πŸ¦‹πŸ’–