Re: apr_pstrcat use in my own module
am 07.01.2008 03:24:51 von ABAOn 14 d=E9c 2007, 14:26, julien.pontevi...@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