File:  [DVB] / dietlibc / lib / explicit_bzero.c
Revision 1.1: download - view: text, annotated - select for diffs
Wed Sep 30 12:06:54 2015 UTC (8 years, 8 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
add explicit_bzero (OpenBSD API)

#include <string.h>

void explicit_bzero(void* dest,size_t len) {
  memset(dest,0,len);
  asm volatile("": : "r"(dest) : "memory");
}

LinuxTV legacy CVS <linuxtv.org/cvs>