explicit_bzero.c revision 263635
192108Sphk/* OPENBSD ORIGINAL: lib/libc/string/explicit_bzero.c */ 292108Sphk/* $OpenBSD: explicit_bzero.c,v 1.1 2014/01/22 21:06:45 tedu Exp $ */ 392108Sphk/* 492108Sphk * Public domain. 592108Sphk * Written by Ted Unangst 692108Sphk */ 792108Sphk 892108Sphk#include "includes.h" 992108Sphk 1092108Sphk#ifndef HAVE_EXPLICIT_BZERO 1192108Sphk 1292108Sphk/* 1392108Sphk * explicit_bzero - don't let the compiler optimize away bzero 1492108Sphk */ 1592108Sphkvoid 1692108Sphkexplicit_bzero(void *p, size_t n) 1792108Sphk{ 1892108Sphk bzero(p, n); 1992108Sphk} 2092108Sphk#endif 2192108Sphk