memset_explicit(3) Library Functions Manual memset_explicit(3)

memset_explicit - memory set explicit

None.

It is not yet implemented in glibc.

#include <string.h>  // see memory.h(3head)
void *memset_explicit(size_t n;
                      void a[n], int c, size_t n);

This function is similar to memset(3), but guarantees that compiler optimizations will not remove the erase operation if the compiler deduces that the operation is "unnecessary".

See memset(3).

For an explanation of the terms used in this section, see attributes(7).

Interface Attribute Value
memset_explicit () Thread safety MT-Safe

C23.

C23.

See explicit_bzero(3).

bstring(3), memory.h(3head), explicit_bzero(3)

2026-08-10 Linux man-pages 6.19