qh_memclear()

Updated: April 19, 2023

Set the memory to zero

Synopsis:

#include <qh/string.h>
void qh_memclear(void *dst,
                 size_t size)

Arguments:

dst
The destination buffer to clear.
size
The size of the destination buffer to clear.

Library:

qh

Description:

The qh_memclear() function clears the memory, setting it to zero, while bypassing any possible compiler optimizations that could otherwise prevent the memory from being cleared.