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
normal cae8e96bf5 missing/explicit_bzero.c: Fixup r52806
Maybe kosaki had a better version, but CI failure emails are
annoying.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-30 22:53:21 +00:00

8 lines
149 B
C

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