Introduction
Introduction Statistics Contact Development Disclaimer Help
explicit_bzero.c - slock - simple X display locker utility
git clone git://git.suckless.org/slock
Log
Files
Refs
README
LICENSE
---
explicit_bzero.c (331B)
---
1 /* $OpenBSD: explicit_bzero.c,v 1.3 2014/06/21 02:34:26 matthew E…
2 /*
3 * Public domain.
4 * Written by Matthew Dempsky.
5 */
6
7 #include <string.h>
8
9 __attribute__((weak)) void
10 __explicit_bzero_hook(void *buf, size_t len)
11 {
12 }
13
14 void
15 explicit_bzero(void *buf, size_t len)
16 {
17 memset(buf, 0, len);
18 __explicit_bzero_hook(buf, len);
19 }
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.