httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: apache-2.0/src/lib/apr/file_io/unix readwrite.c
Date Wed, 12 Apr 2000 22:58:49 GMT
dean gaudet wrote:
> 
> On Tue, 11 Apr 2000, Greg Stein wrote:
> 
> > Or the He-Man way:
> >
> >     *((char *)buf)++ = ...
> 
> i think this is a gcc extension (although maybe it's in C99 now) -- in C89
> the result of a cast is always an rvalue; and ++ requires an lvalue.

*(*(char **)&buf)++ = ...

Maybe?

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

Mime
View raw message