/* This file is in the public domain. */ #include "dequal.h" #include "strings.h" /* * Strip qualifiers (const, volatile) from a pointer, generic C * version. */ /* * There are at least three ways I know of to do this. Since * qualifiers are defined to not affect storage size and * representation, this is a reasonably portable way, albeit generally * less efficient than one might wish. See dequal.h for more. */ void *dequal(const volatile void *v) { void *rv; bcopy(&v,&rv,sizeof(void *)); return(rv); }