aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

explicit_bzero.c (286B)


      1 /* see LICENSE file for copyright and license details */
      2 #include <string.h>
      3 
      4 #include "../util.h"
      5 
      6 #ifndef HAVE_EXPLICIT_BZERO
      7 static void *(*volatile explicit_memset)(void *, int, size_t) = memset;
      8 
      9 void
     10 explicit_bzero(void *b, size_t len)
     11 {
     12   (*explicit_memset)(b, 0, len);
     13 }
     14 #endif