/* This file is in the public domain. */ #include #include "dequal.h" /* * Strip qualifiers (const, volatile) from a pointer, generic C * version. */ /* * There are at least three ways I know of to do this. This is perhaps * the most efficient, albeit less portable than one might wish. */ void *dequal(const volatile void *v) { return((((const volatile char *)v)-(const volatile char *)0)+(char *)0); }