arithmetic on void pointers

Russ Rew russ at groucho.ucar.edu
Tue Mar 7 06:13:33 AEST 1989


GNU C supports arithmetic on void pointers, but the manual implies
that this is an extension to the C language.  I could find no
prohibition on arithmetic on void pointers in K&R second edition.
What does the latest dpANS document say?  Is it legal to increment a
variable of type void* ?

--
Russ Rew                                     UCAR, P.O. Box 3000          
INTERNET: russ at unidata.UCAR.EDU		     Boulder, CO  80307
UUCP: russ at scdpyr.UUCP                       (303) 497-8845



More information about the Comp.lang.c mailing list