httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: My oh my
Date Fri, 21 Apr 2000 16:18:36 GMT
> > why not pass in "char *buf, size_t bufsize" ?
> > 
> 
> +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);
> 
> Bill

Because the return code is a pointer to the caller's own buffer, I
prefer "char *" instead of "const char *"; what they do with their
buffer is their business.

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message