Collin Funk wrote: > I have personally not used a compiler that does not support the > GNU C extension allowing addition to void pointers [1]. Bruno, I am > curious, do you know of any compilers where that is not the case?
$ cat foo.c
void * pointerplus (void *p)
{
return p + 2;
}
MSVC 14 does not support it:
$ $CC -c foo.c
foo.c
foo.c(3): error C2036: 'void *': unknown size
But many other compilers do, in particular:
- AIX xlc,
- Sun C,
- TinyCC
Bruno
