>>'s' is declared as a (void *).
>>What is the value of a (void *) -1 ????
>GNU C does allow pointer arithmetic on (void *). See the GCC manual.
Yes, but it will warn when you use -W because it's a gcc extension.
And in most cases I've seen using void pointers in pointer arithmetic
it could just as well have been casted to char*. IMO this is one of
those GNU extensions that weren't very well thought out.
Philipp
-- You have moved your mouse. Windows must be rebooted for the changes to take effect.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/