* util.h: Add wipememory() macro.

This commit is contained in:
David Shaw 2002-10-31 15:35:24 +00:00
parent b9d7219150
commit d284a4d200
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-10-31 David Shaw <dshaw@jabberwocky.com>
* util.h: Add wipememory() macro.
2002-10-29 Stefan Bellon <sbellon@sbellon.de>
* util.h: Added parameter argument to make_basename() needed for

View File

@ -261,6 +261,8 @@ int vasprintf ( char **result, const char *format, va_list args);
#define DIM(v) (sizeof(v)/sizeof((v)[0]))
#define DIMof(type,member) DIM(((type *)0)->member)
#define wipememory(_ptr,_len) do { volatile char *_vptr=(volatile char *)(_ptr); size_t _vlen=(_len); while(_vlen) { *_vptr=0; _vptr++; _vlen--; } } while(0)
/******* RISC OS stuff ***********/
#ifdef __riscos__
/* needed for strcasecmp() */