Re: apr_pstrcat use in my own module

On 14 d=E9c 2007, 14:26, julien.pontevi... [at] gmail.com wrote:
> Hi,
>
> Is it possible to write this (last line, dualuseof new_cookie) :
> char *cookiebuf =3D NULL;
> char *new_cookie =3D NULL;
> /* ... */
> new_cookie =3D apr_psprintf(r->pool, "%s=3D%s; path=3D/", cookie_name,
> cookiebuf);
> /* ... */
> new_cookie =3D apr_pstrcat(r->pool, new_cookie, "; domain=3D", domain,
> NULL);
>
> Or should I write this :
> char *new_cookie2 =3D NULL;
> char *cookiebuf =3D NULL;
> char *new_cookie =3D NULL;
> /* ... */
> new_cookie =3D apr_psprintf(r->pool, "%s=3D%s; path=3D/", cookie_name,
> cookiebuf);
> /* ... */
> new_cookie2 =3D apr_pstrcat(r->pool, new_cookie, "; domain=3D", domain,
> NULL);
>
> Regards,
> Younger69.

Hi,

I have the same kind of problem.
Does anybody have a response ?

Thanks.
Aurelien.
http://aurelien.barbier-accary.info
ABA [ Mo, 07 Januar 2008 03:24 ] [ ID #1901740 ]
Webserver » alt.apache.configuration » Re: apr_pstrcat use in my own module

Vorheriges Thema: [STAT] Statistics of alt.apache.configuration 01/07/08
Nächstes Thema: mod_proxy_balancer: Passing heaaders from backends to client