httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Nicholls <gnicho...@level8.com>
Subject Re: apr_send using const char instead of void ??
Date Wed, 20 Sep 2000 12:28:32 GMT
 By length calculations are you referring to sizeof() ??
    G.

Tony Finch wrote:

> Jeff Trawick <trawickj@bellsouth.net> wrote:
> >Gregory Nicholls <gnicholls@level8.com> writes:
> >
> >>     Question: The prototype for function apr_send uses a const char * as it's
> >> buffer parm type. Is there a reason that this isn't a void * ??? I mean I know
I
> >> can cast it but I'm wondering if there's something I don't understand.
> >
> >"const void *" sounds better to me, too.
>
> A reason in favour of char* is that length calculations on void
> pointers are forbidden. If the latter were not true I'd be in favour
> of void* too, but then void* would effectively be no different from
> char*.
>
> Tony.
> --
> en oeccget g mtcaa    f.a.n.finch
> v spdlkishrhtewe y    dot@dotat.at
> eatp o v eiti i d.    fanf@covalent.net


Mime
View raw message