1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/missing/explicit_bzero.c

9 lines
149 B
C
Raw Normal View History

#include <string.h>
/* prevent the compiler from optimizing away memset or bzero */
void
explicit_bzero(void *p, size_t n)
{
memset(p, 0, n);
}