You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Greg Stein <gs...@lyra.org> on 2000/04/22 20:55:04 UTC
ap_strerror prototype (was: Re: My oh my)
On Sat, 22 Apr 2000, Jeff Trawick wrote:
> > On Fri, 21 Apr 2000, Bill Stoddard wrote:
> > >...
> > > +1
> > >
> > > on changing
> > > const char *ap_strerror(ap_status_t statcode, ap_pool_t *p)
> > > to
> > > const char *ap_strerror(ap_status_t statcode, char *buf, size_t bufsize);
> >
> >
> > +1 here, too. Why? Read Ben's posts :-)
> >
> > Cheers,
> > -g
> >
> > --
> > Greg Stein, http://www.lyra.org/
>
> But why not "char *" instead of "const char *" since it is clearly the
> caller's buffer which is referenced by the return value?
Cuz I was just doing a "me too" on Bill's post :-)
+1 on the char * return-type change, too.
In other words, final prototype for ap_strerror:
char *ap_strerror(ap_status_t statcode, char *buf, size_t bufsize);
Cheers,
-g
--
Greg Stein, http://www.lyra.org/