Operations on pointers to void.

Karl Heuer karl at haddock.ima.isc.com
Thu Aug 16 08:56:11 AEST 1990


In article <1990Aug12.231202.23826 at druid.uucp> darcy at druid.uucp (D'Arcy J.M. Cain) writes:
>Perhaps we need a new type which acts like void * but allows pointer
>arithmetic based on the smallest data type supported by the system, usually
>(but not always) a byte.

Trouble is, there's no convenient way to describe the operation of
incrementing a pointer by less than a byte, since `sizeof(char)' is
required to be exactly 1.  (This, in turn, is really caused by the
unfortunate overloading of `char' for three logically distinct types;
but it's much too late to fix that.)

Karl W. Z. Heuer (karl at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint



More information about the Comp.lang.c mailing list