gnutls_memset(3)

πŸ’– gnutls_memset β€” the manual page, but make it make sense πŸ’–

okay bestie, so this is a page from the gnutls manual (yes, that gnutls, the TLS library, she's iconic) and today's main character is a lil function called gnutls_memset. it's giving "memset but with trust issues" and honestly? valid.


✨ NAME ✨

gnutls_memset β€” it's an API function, periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

void gnutls_memset(void * data, int c, size_t size);

🌸 ARGUMENTS 🌸

  • void * data β€” the memory you wanna set. that's the target, the moment, the whole vibe.
  • int c β€” the constant byte you're filling that memory with. just one byte, doing its lil thing.
  • size_t size β€” how much memory we're talking about. the size of memory, fr fr.

πŸ‘‘ DESCRIPTION πŸ‘‘

so this function operates similarly to memset(), bestie β€” same energy, same job. BUT. and this is the whole point: it will not be optimized out by the compiler. 😀

like, the compiler cannot just look at your careful memory-clearing and go "hmm, nobody reads this, let me delete it πŸ’€". nope. it stays. that's the entire reason she exists. she's the reliable one. she shows up. 🫢


⭐ SINCE ⭐

3.4.0 β€” she's been here since 3.4.0, lowkey a veteran.


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the devs:


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

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: use it, share it, just keep the receipts. πŸ’…)


🌈 SEE ALSO 🌈

The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit

https://www.gnutls.org/manual/

like, go read the whole thing, it's a journey. ✨


ngl this one's short but she's important β€” never let your compiler gaslight you into thinking you didn't write that memory clear. 🧚

anyway that's the page!! this was gnutls, version 3.8.13, and yes the page itself is literally named gnutls_memset(3). mwah, slay, bye bestie πŸ’œπŸ“

πŸ“¦ where this page comes from