what is the suggested way to do void * arithmetic ?
Terry Lambert
tlambert2 at mindspring.com
Fri Jul 11 03:02:10 PDT 2003
Luigi Rizzo wrote:
> > I don't understand the second one. The first one blows up because
> > you aren't parenthesizing, e.g.:
> >
> > next = (void *)(p + len);
> >
> > The compiler is complaining because it doesn't know sizeof(*((void *)0))
>
> ok, it actually evaluates to 1 and i thought it was some standard, probably
> it is not so i guess i have to cast to (char *) instead
THat's what I meant -- "char *", not "char"; sorry for any confusion.
-- Terry
More information about the freebsd-current
mailing list