explicit_bzero.c 280 B

1234567891011121314151617
  1. /* $OpenBSD: explicit_bzero.c,v 1.1 2012/10/09 12:03:51 jsing Exp $ */
  2. /*
  3. * Public domain.
  4. * Written by Ted Unangst
  5. */
  6. #include <lib/libsa/stand.h>
  7. /*
  8. * explicit_bzero - don't let the compiler optimize away bzero
  9. */
  10. void
  11. explicit_bzero(void *p, size_t n)
  12. {
  13. bzero(p, n);
  14. }