lkml.org 
[lkml]   [2004]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Some cleanup patches for: '...lvalues is deprecated'
Hello Daniel,

> > So just use
> >
> > buffer++;
> >
> > here, and the intent is then clear.
>
> Except C does not actually allow incrementing a void pointer, since
> void does not have a size.
That make better sense to me because aifair a void * was foreseen to pass
any kind of type * as actual parameter?
(So as far as I understand, the aritthm pointer sould be dynamic for the
best 'natural' behaviour?)

> You can't do arithmetic on one either. GNU
> C allows this as an extension.
>
> It's actually this, IIRC:
> buffer = ((char *) buffer) + 1;
>
Many thanks,
Joel


---------------------------------------------------------------------------
Tiscali ADSL LIGHT, 19,95 EUR/mois pendant 6 mois, c'est le moment de faire
le pas!
http://reg.tiscali.be/default.asp?lg=fr




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.274 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site