Subject: Re: __UNCONST(a)
To: David Laight <>
From: Johan Danielsson <>
List: tech-userlevel
Date: 07/01/2004 10:54:43
David Laight <> writes:

> #define __UNCONST(a) ((void *)(((const char *)(a) - (const char *)0) + (char *)0))

Although this will likely work on most (if not all) architechtures,
it's not really allowed by C. When subtracting pointers they both have
to point into the same array. We can probably ignore this for now.