Pointer and integer addition

Stephen R. van den Berg berg at marvin.e17.physik.tu-muenchen.de
Thu Apr 11 20:51:14 AEST 1991


Duane Richard LaMont writes:
>You were definitely on the right track, try:

>    (char *) fooptr += fooptr->recsize;

THAT, is not allowed.  (See discussion about "increment casted void-pointer").
--
Sincerely,                 berg at marvin.e17.physik.tu-muenchen.de
           Stephen R. van den Berg.
"I code it in 5 min, optimize it in 90 min, because it's so well optimized:
it runs in only 5 min.  Actually, most of the time I optimize programs."



More information about the Comp.lang.c mailing list